Repository navigation
Description
Use case
The showTimePicker API accepts a boolean input called alwaysUse24HourFormat that is used to control the input time clock being displayed in 12 hour (am/pm) or 24 hour format.
Expected behaviour
When time picker is invoked with alwaysUse24HourFormat set to false, the input time clock should "not always have 24 hour format", and therefore should obey the locale (if locale uses 24 hour clock, so should the clock even when alwaysUse24HourFormat=false ).
Actual behaviour
When time picker is invoked with alwaysUse24HourFormat set to false, the input time clock "always has 12 hour format", regardless of the locale.
Proposal
Rename alwaysUse24HourFormat to use24HourFormat to avoid confusion. In that way, it is clear that use24HourFormat=false means that 12h format is always used / enforced.
If that is not possible, the current behaviour of alwaysUse24HourFormat should at least be documented.
Activity
danagbemava-nc commentedon Sep 9, 2021
Hi @TodorGinchev, thanks for the proposal.
I can't seem to find the
alwaysUse24HourFormatproperty on theshowTimePicker. Do you mind pointing that out for me in the docs?Thank you
TodorGinchev commentedon Sep 9, 2021
Apologies, it is not directly supported through the showTimePicker API, this is how you can set the value of alwaysUse24HourFormat:
[-]alwaysUse24HourFormat in showTimePicker() should be renamed[/-][+]alwaysUse24HourFormat in MediaQuery should be renamed[/+]arq0017 commentedon Sep 15, 2021
Hi @TodorGinchev, I am new to the community and I would like to contribute to this issue. According to your proposal, I could Rename alwaysUse24HourFormat to use24HourFormat to avoid confusion.
2 remaining items
flutter-triage-bot commentedon Sep 20, 2026
This issue is missing a priority label. Please set a priority label when adding the
triaged-designlabel.[-]alwaysUse24HourFormat in MediaQuery should be renamed[/-][+][material_ui] Properly document alwaysUse24HourFormat in MediaQuery[/+]dkwingsmt commentedon Sep 22, 2026
I agree with @/goderbauer 's comment:
Feel free to send a PR to better document this property. Thanks!