Hide the log-date glyph on today

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWYndZhdUrRGFEjBazQ
This commit is contained in:
Krzysztof Rudnicki 2026-11-09 08:29:15 +01:00
parent 752c3704b2
commit 445712dea3
2 changed files with 12 additions and 10 deletions

View File

@ -91,15 +91,17 @@ mixin LogMealFutureMixin<T extends StatefulWidget> on State<T> {
final scheme = Theme.of(context).colorScheme; final scheme = Theme.of(context).colorScheme;
return Row( return Row(
children: [ children: [
Icon( // Today is the default and shows nothing; only a picked date (data)
Icons.event, // is shown, marked by the calendar glyph.
size: 18, if (date != null) ...[
color: scheme.onSurfaceVariant, Icon(
semanticLabel: 'Log date', Icons.event,
), size: 18,
const SizedBox(width: AppSpacing.xs), color: scheme.onSurfaceVariant,
// Today is the default and needs no word; only a picked date (data) semanticLabel: 'Log date',
// is shown. ),
const SizedBox(width: AppSpacing.xs),
],
Expanded( Expanded(
child: date == null ? const SizedBox() : Text(localDateKey(date)), child: date == null ? const SizedBox() : Text(localDateKey(date)),
), ),

View File

@ -2,7 +2,7 @@ name: diet_guard_app
description: "Companion phone app for diet_guard: log meals on the go." description: "Companion phone app for diet_guard: log meals on the go."
publish_to: 'none' publish_to: 'none'
version: 1.0.143+1 version: 1.0.144+1
environment: environment:
sdk: ^3.12.2 sdk: ^3.12.2