From 445712dea391d5b79a8d3e5534231f4374e0d5d5 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Mon, 9 Nov 2026 08:29:15 +0100 Subject: [PATCH] Hide the log-date glyph on today Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWYndZhdUrRGFEjBazQ --- app/lib/screens/log_meal_future_mixin.dart | 20 +++++++++++--------- app/pubspec.yaml | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/lib/screens/log_meal_future_mixin.dart b/app/lib/screens/log_meal_future_mixin.dart index 2be53f2..a839d3f 100644 --- a/app/lib/screens/log_meal_future_mixin.dart +++ b/app/lib/screens/log_meal_future_mixin.dart @@ -91,15 +91,17 @@ mixin LogMealFutureMixin on State { final scheme = Theme.of(context).colorScheme; return Row( children: [ - Icon( - Icons.event, - size: 18, - color: scheme.onSurfaceVariant, - semanticLabel: 'Log date', - ), - const SizedBox(width: AppSpacing.xs), - // Today is the default and needs no word; only a picked date (data) - // is shown. + // Today is the default and shows nothing; only a picked date (data) + // is shown, marked by the calendar glyph. + if (date != null) ...[ + Icon( + Icons.event, + size: 18, + color: scheme.onSurfaceVariant, + semanticLabel: 'Log date', + ), + const SizedBox(width: AppSpacing.xs), + ], Expanded( child: date == null ? const SizedBox() : Text(localDateKey(date)), ), diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 047d9d1..c29cfc7 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -2,7 +2,7 @@ name: diet_guard_app description: "Companion phone app for diet_guard: log meals on the go." publish_to: 'none' -version: 1.0.143+1 +version: 1.0.144+1 environment: sdk: ^3.12.2