use24HourFormat property

bool use24HourFormat
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;