diet-guard/app/lib
Krzysztof kuhy Rudnicki a106970b4f
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
theme.dart: define secondary/tertiary ColorScheme roles
Found via testing todo's app, which shares this theme.dart template and
has a SegmentedButton: neither ColorScheme.dark() constructor call
defined secondary/tertiary (or their container/on- variants), so any M3
widget reaching for secondaryContainer silently falls back to Flutter's
stock Material teal instead of erroring. Confirmed this app has the same
live bug — ChoiceChip (slot selector) uses secondaryContainer implicitly,
and FilterChip's "Any"/"With photo"/"Without photo" chips in the History
filter sheet were rendering in stock teal in production right now.

The shared palette has one accent, not a separate secondary hue, so these
mirror primary; secondaryContainer/tertiaryContainer use line-dark as a
distinguishable-but-subtle selected-state fill.

Verified: flutter analyze clean, 436/436 tests, re-verified identical in
an isolated worktree, and confirmed live: rebuilt debug + release APKs,
installed via adb install -r (no data wipe), screenshotted the real
device before/after (the History filter chips went from teal to warm
gold/tan), then rebuilt and redeployed the desktop package
(install_arch.sh -> pacman -U) and confirmed the running desktop window
renders identically.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-22 19:46:07 +02:00
..
desktop app: add the desktop wrapper that serves the web build and fronts GitHub 2026-07-20 16:31:47 +02:00
models Add budget-adherence calendar, streaks, and freely-editable synced budget 2026-07-13 21:31:45 +02:00
screens Wire theme.dart into the app; replace remaining raw Colors.* literals 2026-07-21 21:50:16 +02:00
services app: test the IndexedDB stores instead of shipping them unverified 2026-07-20 16:56:15 +02:00
ui theme.dart: define secondary/tertiary ColorScheme roles 2026-07-22 19:46:07 +02:00
widgets Make AppStatusColors lookup null-safe; fix tests that never had it 2026-07-22 16:52:13 +02:00
main.dart Wire theme.dart into the app; replace remaining raw Colors.* literals 2026-07-21 21:50:16 +02:00