diet-guard/app/lib/screens
Krzysztof kuhy Rudnicki cbbebee79b Pin meal pills to one row; drop the "Logged" restatement
Three independent cleanups ahead of the configurable meal schedule.

Pills: the row was a `Wrap`, so pills dropped onto a second line as soon as
they outgrew the width -- which they do even at four. Measured: a logged chip
is ~124px at Material defaults, so four need 522px against ~330px of phone
width. Now a `FittedBox(scaleDown)` over a `Row`, which scales the row down
uniformly, plus compact chip density so there is less to scale away.

A `Row` of `Expanded` children was the obvious alternative and is wrong: it
imposes a tight width, and a Chip narrower than avatar+padding+label clips its
label rather than shrinking -- measured at 10px per label, about one character,
while throwing no overflow error. The new regression test therefore asserts
both a shared baseline and a legible label width; it was confirmed to fail on
the old `Wrap` ("chip wrapped to a second line at 320.0") rather than passing
vacuously.

Card: the `Logged "<meal>".` line restated the description the user had just
typed. Removed, along with `TodayProgress.justLogged`, which nothing else read.
The kcal position, macros and streak stay.

refactor_claude_todo.md: the 250-line file-splitting refactor it tracked is
done -- `scripts/check_file_length.sh --all` exits 0 and an independent sweep
finds nothing over the cap. DESIGN_AUDIT_TODO.md is a separate, still-open
effort and stays.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159b4E5hh512jYUeaJVNxfM
2026-08-16 14:18:39 +02:00
..
calendar_screen.dart Drop five redundant unawaited() wrappers around Navigator.push 2026-08-14 16:17:18 +02:00
edit_entry_screen.dart Remove unused features; fix reminder false alarms; share all state 2026-07-26 16:39:52 +02:00
food_bank_screen.dart Split food_bank_screen; share the filter widgets with history 2026-08-15 19:43:08 +02:00
github_client_id_dialog.dart Split the last four Dart lib files; file-length gate now reports zero 2026-08-15 21:07:24 +02:00
github_mirror_actions.dart Split the last four Dart lib files; file-length gate now reports zero 2026-08-15 21:07:24 +02:00
github_mirror_screen.dart Split the last four Dart lib files; file-length gate now reports zero 2026-08-15 21:07:24 +02:00
history_screen.dart Split history_screen and its test into widget siblings 2026-08-15 19:35:19 +02:00
log_meal_actions.dart Split log_meal_screen into mixins and widget helpers 2026-08-15 20:59:48 +02:00
log_meal_nav_mixin.dart Split log_meal_screen into mixins and widget helpers 2026-08-15 20:59:48 +02:00
log_meal_progress.dart Pin meal pills to one row; drop the "Logged" restatement 2026-08-16 14:18:39 +02:00
log_meal_screen.dart Pin meal pills to one row; drop the "Logged" restatement 2026-08-16 14:18:39 +02:00
log_meal_sync_mixin.dart Split the last four Dart lib files; file-length gate now reports zero 2026-08-15 21:07:24 +02:00
settings_kcal_goal.dart Split the last four Dart lib files; file-length gate now reports zero 2026-08-15 21:07:24 +02:00
settings_screen.dart Split the last four Dart lib files; file-length gate now reports zero 2026-08-15 21:07:24 +02:00