We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using initialValue the time defaults to 12:00 instead of the time set in initialValue.
this is because at line 378 the order of the selection is wrong
initialTime: widget.initialTime ?? TimeOfDay.fromDateTime(currentValue ?? DateTime.now()));
should actually be
initialTime: currentValue ? TimeOfDay.fromDateTime(currentValue) : widget.initialTime ? widget.initialTime : TimeOfDay.fromDateTime(DateTime.now());
initialTime has a runtime default value so that is getting chosen in preference to the current value.
The text was updated successfully, but these errors were encountered:
Or set initialTime: null in the constructor to force the time to come from the initialValue
Sorry, something went wrong.
I got the same problem.
And before this bug fixed, I use my own timePicker to fix it. Just like following. it works for me.
FormBuilderDateTimePicker( ..., timePicker: (BuildContext context){ return showTimePicker( context: context, initialTime: initialTime, ).then((result){ return result ?? initialTime; }); }, )
Hi @Paul-Todd, Thanks for bringing this to my attention, I'll be sure to fix this ASAP.
ca32d28
No branches or pull requests
When using initialValue the time defaults to 12:00 instead of the time set in initialValue.
this is because at line 378 the order of the selection is wrong
should actually be
initialTime has a runtime default value so that is getting chosen in preference to the current value.
The text was updated successfully, but these errors were encountered: