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'm using DateTimePicker with type datetime. It was working fine but after upgrading flutter date stop changing. When I choose type only to date it works but when i chosse datetime date does not change but time changes.
The text was updated successfully, but these errors were encountered:
I just had this issue and first I traced it to the focusnode, removing the focus solved it... then debugging this library I found that in date_time_picker.dart, on line 844 it gets the correct date, but since it's a global variable it's getting updated back to the original date when it calls showTimePicker... since I didn't want to spend too much time on this I just added another local variable "String selectedDate = '';" on line 845, on line 850 I set it to "selectedDate = _sDate;" and on line 900 I replaced sDate with selectedDate;
I'm using DateTimePicker with type datetime. It was working fine but after upgrading flutter date stop changing. When I choose type only to date it works but when i chosse datetime date does not change but time changes.
The text was updated successfully, but these errors were encountered: