-
Notifications
You must be signed in to change notification settings - Fork 415
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
Internationalizing issue #43
Comments
this is related to #40 |
The problem is in this line My onClose property is null, but it is a required parameter for whenComplete method. void _showDatePicker({
@required BuildContext context,
@required DateTime maxDate,
@required DateTime initDate,
@required Function(DateTime, List<int>) onConfirm,
DateTime minDate,
}) {
DatePicker.showDatePicker(context,
minDateTime: minDate ?? null,
maxDateTime: maxDate,
dateFormat: 'dd-MMMM-yyyy',
initialDateTime: initDate,
locale: DateTimePickerLocale.pt_br,
onConfirm: onConfirm);
} Should I make a PR to solve this ? |
i got same issue, can you fix it soon please, because I used this for production already, thanks |
sorry, it's #solved, just give onClose(){} |
@dwikresno: But don't you agree that must be explicitly? I thing this parameter must be annoted with @required. I'm gonna make a PR with this fix. |
Please upgrade to version: v1.0.12, the |
okay, thanks |
加载 flutter_cupertino_date_picker并运行flutter run 时报Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments. 这个与什么有关 |
Hi !
After I added Localizations into my app(following this tutorial ) I got this issue when I interact with the Picker:
Do I need to implement something else ?
My app supported languages:
My AppLocalization`s load method:
flutter doctor:
Thank you for this amazing plugin !
The text was updated successfully, but these errors were encountered: