-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
a: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.
Description
By default, the time of day picker uses 12- or 24-hour format based on the locale. However, there is a setting "Use 24-hour format" that forces 24-hour format no matter what locale is chosen. Flutter's showTimePicker should respect this option.
Android
iOS
AFAICT there's no way to get it directly. One possibility is to have the NSDateFormatter format a sample time for a locale known to use 12-hour format. If the result is 24-hour format, then the "24-hour" setting must be enabled. Otherwise, it's not.
/cc @cbracken
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.