use24HourFormat property
final
Changes the time input to 12 hour time. Defaults to true.
If you want to set this to the device's default use MediaQuery.of(context).alwaysUse24HourFormat
Implementation
final bool use24HourFormat;
Changes the time input to 12 hour time. Defaults to true.
If you want to set this to the device's default use MediaQuery.of(context).alwaysUse24HourFormat
final bool use24HourFormat;