You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experiencing build errors related to the DatePickerTheme import in the flutter_datetime_picker package. It seems there's a conflict because DatePickerTheme is imported from both package:flutter/src/material/date_picker_theme.dart and package:flutter_datetime_picker/src/datetime_picker_theme.dart. This conflict prevents the package from being used as it generates an error on build. Here are the error messages I receive:
Error: 'DatePickerTheme' is imported from both 'package:flutter/src/material/date_picker_theme.dart' and 'package:flutter_datetime_picker/src/datetime_picker_theme.dart'.
Could a resolution involve modifying the internal imports within the package or is there an alternative fix available?
The text was updated successfully, but these errors were encountered:
This is because of a conflict where we use flutter_datetime_picker: ^1.5.1 (since it has an analysis issue as well).
See https://pub.dev/packages/flutter_datetime_picker/versions
Remove flutter_datetime_picker:^1.5.1 from your pubspec.yaml and use Flutter builti-n DateTime Package which is given below. showTimePicker(context: context,
initialTime: TimeOfDay.now(),);
I am experiencing build errors related to the
DatePickerTheme
import in theflutter_datetime_picker
package. It seems there's a conflict becauseDatePickerTheme
is imported from bothpackage:flutter/src/material/date_picker_theme.dart
andpackage:flutter_datetime_picker/src/datetime_picker_theme.dart
. This conflict prevents the package from being used as it generates an error on build. Here are the error messages I receive:Could a resolution involve modifying the internal imports within the package or is there an alternative fix available?
The text was updated successfully, but these errors were encountered: