mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-22 02:42:16 +01:00
Both by pattern B, both cut along the same line: whatever does not call setState can live in a part extension, whatever does must stay on the class. home_screen.dart 260 -> 228 home_screen_navigation.dart (42) takes `_openSyncSettings` and `_openWorkout` — the two routes the screen pushes, each ending in the same `unawaited(_load())` reload. `_load` and `_refreshSyncStatus` stay: both setState. manual_workout_screen.dart 313 -> 245 manual_workout_form_parts.dart (83) takes the form's non-interactive building blocks — `_budgetBanner`, `_section`, `_text` — plus the `_int`/`_str` field readers and the `_draft()` assembler they feed. The sport dropdown and RPE slider stay on the class; both setState on change. 402 tests pass, dart analyze clean, coverage still 100%. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EveB813BQ8abAP68VSqZ5Y |
||
|---|---|---|
| .. | ||
| workout_app | ||
| design.md | ||
| dfesign_v2.md | ||