-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
(3.3.4) FormBuilderDateTimePicker ignoring initialDate #108
Comments
Thank you for bringing this to our attention. |
Hi, Edited : |
Looks like the culprit is that the value of the text editing controller is not being set on intiState. Adding the following got me back up and running: In initState(), right after
I'm sure there is a more elegant way to do this - also, I have a check box in my app to show or hide the date, that logic seems to be not working at the moment. |
This bug has come sometime after |
Hi @abhinavc, |
Hi Danvick, |
Hi Danvick,
Noticed a possible breaking change.
Passing
initialDate: DateTime.tryParse("20000101")
, for example, in the constructor has no effect. The date picker still open at current date.And if one passes a
lastDate
that is before today, then one gets an!initialDate.isAfter(lastDate)
assertion error from withindate_picker.dart
The problem seems to be here in
form_builder_date_time_picker.dart
I think
initialDate: (currentValue ?? widget.initialDate) ?? DateTime.now()
is what's required. But you can confirm.Thanks
Abhinav.
The text was updated successfully, but these errors were encountered: