|
|
@ -35,7 +35,7 @@ extension DateTimeExtension on DateTime {
|
|
|
|
|
|
|
|
|
|
|
|
/// Returns a simple time String.
|
|
|
|
/// Returns a simple time String.
|
|
|
|
String localizedTimeOfDay(BuildContext context) =>
|
|
|
|
String localizedTimeOfDay(BuildContext context) =>
|
|
|
|
MediaQuery.of(context).alwaysUse24HourFormat
|
|
|
|
L10n.of(context)!.alwaysUse24HourFormat == 'true'
|
|
|
|
? DateFormat('HH:mm', L10n.of(context)!.localeName).format(this)
|
|
|
|
? DateFormat('HH:mm', L10n.of(context)!.localeName).format(this)
|
|
|
|
: DateFormat('h:mm a', L10n.of(context)!.localeName).format(this);
|
|
|
|
: DateFormat('h:mm a', L10n.of(context)!.localeName).format(this);
|
|
|
|
|
|
|
|
|
|
|
|