Repository navigation
Description
I reported an issue with the Cashew app - an app written in Flutter here.
He said the problem was with Flutter so I moved here to find better support.
-
When the Android system displays in Vietnamese, French or Spanish - and 12-hour format is selected - the Cashew's (Flutter) time picker will always remain in 24-hour format, not switch to 12-hour format as desired. Does Flutter not support 12 hour format with those 3 languages?
-
Cashew's (Flutter) 24-hour time picker has two time circles picker. These two time circles picker are too close together, touching each other. I think the result is a lack of aesthetics and the ability to choose numbers incorrectly. Big fingers are more likely to pick the wrong number.
Caption: 10:00 touched 22:00 because they were too close to each other.
- Platform: Crdroid Android 13.
- Device: Sony Xperia 1.
=> I hope Flutter can support the 12-hour format for Vietnamese, French, and Spanish. As well as further spacing of the two numerical circles time picker to ensure ease of use and aesthetic symmetry!

Activity
dam-ease commentedon Jan 15, 2024
Thanks for filing this @ngocanhtve.
Can you please provide a minimal complete reproducible code sample that doesn’t include 3rd party plugins or complex production code?
I tried reproducing this with a simple time picker sample code below but can't seem to reproduce what exact issue you are encountering. Can you modify this to reproduce your issue?
I can reproduce this with the sample below, it only occurs with Material3 and this isn't specific to any localization. Can you help with more information on the first?
Code Sample
flutter doctor -v
ngocanhtve commentedon Jan 15, 2024
First of all, thank you for your attention to my issue report.
Sorry I'm not the one who wrote that app. So I can only link the source code of Cashew app and link to the time picker file, maybe you will discover something useful on it.
Update: On the user side. When the time picker is in 24-hour format, there will be 2 circles, the outer circle from 1, 2, ... 11, 00. The small inner circle from 13, 14, ... 23, 12. The issue is that these two circles are too close to each other.
For example, at the 10 o'clock position (AM) corresponding to the 22 o'clock position (PM), the numbers 10 and 22 are very close to each other. When choosing one of the two numbers, the color selection mark will touch the other number.
Additionally, I see that a few other apps written in Flutter also have time pickers with two circles very close together like that. So please make those two circles farther apart, the outer circle should be extended a little bit more, because I see there is still a lot of space around.
Thanks!
dam-ease commentedon Jan 16, 2024
Hello @ngocanhtve.
Thanks for your response!
I got/understood the issue with close circles and also shared that I can reproduce this with a minimal reproducible code I shared in my comment #141501 (comment).
The information being asked for is on this but I can reproduce this as well now after changing my device Language to Vietnamese using the minimal reproducible code I shared in my comment #141501 (comment) as well.
Simulator.Screen.Recording.-.iPhone.15.-.2024-01-16.at.08.50.23.mp4
I'll be labelling this for more insights.
Thank you!
ngocanhtve commentedon Jan 16, 2024
Thank you for your thorough reply. I hope the solutions Flutter offers will help apps update time pickers better. But honestly, I don't understand anything about the lines of code you provided, sorry about that.
Thanks again!
jamesncl commentedon May 29, 2024
I have also encountered the problem of certain locales not showing the 12-hour AM/PM style time picker when the device settings are set to 12-hour. This appears to affect any locale who's default
TimeOfDayFormatis eitherTimeOfDayFormat.HH_colon_mmorTimeOfDayFormat.HH_dot_mm. The defaults appear to be defined in generated_material_localizations.dart - doing a quick search reveals 38 locales which this issue will affect (includinges,fr,vi,en-GB).I raised a duplicate issue #149179 before I saw this one - however, because this issue is raising two separate concerns:
Can I suggest that this issue is renamed and repurposed to just track the accessibility issue, any #149179 becomes the main tracker for the 12-hour issue?
huycozy commentedon May 30, 2024
@ngocanhtve We should break into separate issues for better tracking, so I renamed this issue title to focus on the accessibility issue (
size of the circles in the time picker UI). There is a separate issue for12-hour format is not showingat #149179. So please follow up on that issue for updates. Thanks!cc @HansMuller for updates.
[-][BUG] Issue related to local 24-hour time picker.[/-][+][a11y] Circles on 24-hour time picker are too close together[/+]ngocanhtve commentedon May 30, 2024
fix: Russian localization + disable buggy 24h time picker dial
fix: Russian localization + disable buggy 24h time picker dial