flutter-cupertino-date-picker icon indicating copy to clipboard operation
flutter-cupertino-date-picker copied to clipboard

AM/PM Merged, Updated, Fixed

Open rdev-software opened this issue 5 years ago • 6 comments

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

rdev-software avatar Sep 29 '19 07:09 rdev-software

@dylanwuzh can we get this merged? 👍

jamesdixon avatar Dec 09 '19 01:12 jamesdixon

@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?

jamesdixon avatar Jan 13 '20 00:01 jamesdixon

If I change the dateFormat to use 24 hour (HH), it works as expected.

jamesdixon avatar Jan 13 '20 00:01 jamesdixon

Would love to see this merged and available soon. Thanks for the enhancement!

carlleeswanson avatar Jun 06 '20 02:06 carlleeswanson

@dylanwuzh Can this get merged?

hinterlandcreative avatar Jun 29 '20 13:06 hinterlandcreative

Hi is this implemented in the production?

rjtubera avatar Aug 10 '21 10:08 rjtubera