date_time_picker icon indicating copy to clipboard operation
date_time_picker copied to clipboard

type: DateTimePickerType.time has only 24 hours format

Open Mr-Mallick opened this issue 4 years ago • 2 comments

I was converting the 24 hours format to 12 hours but wasn't able to do that

Mr-Mallick avatar Jan 06 '21 14:01 Mr-Mallick

In materialApp widget try to set supportedLocales with Locale('en', 'US') and the other locale you want. Then, in DateTimePicker, set the parameters use24HourFormat: false, and locale: 'with your prefered locale' as Locale('pt', 'BR'),

It will work.

hslbetto avatar Mar 03 '21 01:03 hslbetto

This does not work.

I submitted a pull request to fix it #37

StorminGorman avatar Apr 10 '21 20:04 StorminGorman