date_time_picker
date_time_picker copied to clipboard
Time not displaying in 12hrs format
I've use24hours: false and yet I see 24hrs format in the text field. How do I fix this?
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.
The above workaround does not work for me
I submitted a pull request to fix it #37
when you want to use 'use24hours' field you have to use 'locale', it works for me.
use24HourFormat: false, locale: const Locale('en', 'US'),