2) The DateTimeField receives a date like "2023-12-14 21:15:33" from selectedStart variable.
3) User taps on the date time field, to open the Date Picker.
4) User taps on "OK" button to open the the Time Picker.
5) User taps "Cancel" on Time Picker
6) The value returned is "2023-12-14 21:15:33"
Expected behaviour
In my opinion the expected behaviour should be returning the date with the previous time.
Example:
The user wants to change only the date, they accidentally change the time and want to cancel it. As the field is changing the time to 00:00:00, the user can not realise that the time was changed. It can allow the user to submit the changes with a date time that was "reseted" by the component.
My pubspec.yaml
How to reproduce
1) Given the date time field (It has the default mode:
DateTimeFieldPickerMode.dateAndTime
):2) The DateTimeField receives a date like "2023-12-14 21:15:33" from selectedStart variable. 3) User taps on the date time field, to open the Date Picker. 4) User taps on "OK" button to open the the Time Picker. 5) User taps "Cancel" on Time Picker 6) The value returned is "2023-12-14 21:15:33"
Expected behaviour
In my opinion the expected behaviour should be returning the date with the previous time.
Example: