-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DatePickerTheme is imported from both #332
Comments
Same. getting this: |
Same. getting this: |
same here
|
anyone gotten a fix for this? |
I got same issue. For me, I edited the library directly. In flutter_datetime_picker.dart, add 'as' in the 'import'.
Then, change |
The best solution currently would be to directly edit |
@AndOs-03 which lib did you choose please ? So can we assume this library is dead then ? Real shame if it is.... |
@ringonotts I used flutter_datetime_picker_plus |
or Edited the library directly. In flutter_datetime_picker.dart, hide DatePickerTheme in the 'import'. |
../../../../../.pub-cache/hosted/pub.dev/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:6:1: Error: 'DatePickerTheme' is imported from |
../../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:6:1: Error: 'DatePickerTheme' is imported from both 'package:flutter/src/material/date_picker_theme.dart' and 'package:flutter_datetime_picker/src/datetime_picker_theme.dart'.
import 'package:flutter_datetime_picker/src/datetime_picker_theme.dart';
^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:199:31: Error: 'DatePickerTheme' is imported from both 'package:flutter/src/material/date_picker_theme.dart' and 'package:flutter_datetime_picker/src/datetime_picker_theme.dart'.
this.theme = theme ?? DatePickerTheme(),
I've use an alias like this
import 'package:flutter_datetime_picker/flutter_datetime_picker.dart' as datepickerrr;
but not work.I use flutter_datetime_picker: ^1.5.1 flutter_windows_3_13_9
The text was updated successfully, but these errors were encountered: