flutter-cupertino-date-picker
flutter-cupertino-date-picker copied to clipboard
AM/PM Merged, Updated, Fixed
Adding AM/PM feature to time picker and datetime picker https://github.com/dylanwuzh/flutter-cupertino-date-picker/issues/35
Used code from PR https://github.com/dylanwuzh/flutter-cupertino-date-picker/pull/49 Retested, Added missing features and fixed some bugs with datetime picker
@dylanwuzh can we get this merged? 👍
@rdev-software I'm seeing an issue where when I attempt to scroll any of the wheels, the hours disappear. See video here: https://share.getcloudapp.com/nOumbNvl
Here's the code I'm using:
DatePicker.showDatePicker(
context,
initialDateTime: initialValue,
dateFormat: 'MMM dd, yyyy|hh|mm|a',
minDateTime: DateTime.now(),
pickerMode: DateTimePickerMode.datetime,
onConfirm: (v, _) {
selectedDateTime = v;
controller.text = formatDateTime(v);
Vibrate.feedback(FeedbackType.success);
},
);
Are you experiencing this?
If I change the dateFormat
to use 24 hour (HH
), it works as expected.
Would love to see this merged and available soon. Thanks for the enhancement!
@dylanwuzh Can this get merged?
Hi is this implemented in the production?