add time when log meal and nutrition

This commit is contained in:
cryptbrn
2026-01-17 15:32:24 +07:00
parent 381d28d044
commit 339e00abd6
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ class _LogMealScreenState extends State<LogMealScreen> {
@override
Widget build(BuildContext context) {
final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode);
final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode).add_Hm();
final i18n = AppLocalizations.of(context);
final args = ModalRoute.of(context)!.settings.arguments as LogMealArguments;

View File

@@ -227,7 +227,7 @@ class IngredientFormState extends State<IngredientForm> {
@override
Widget build(BuildContext context) {
final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode);
final dateFormat = DateFormat.yMd(Localizations.localeOf(context).languageCode).add_Hm();
final timeFormat = DateFormat.Hm(Localizations.localeOf(context).languageCode);
if (_dateController.text.isEmpty) {