mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-24 18:06:25 +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 |
||
|---|---|---|
| .. | ||
| github_mirror_screen_widgets.dart | ||
| github_mirror_screen.dart | ||
| history_screen_charts.dart | ||
| history_screen_data.dart | ||
| history_screen_painter.dart | ||
| history_screen_tiles.dart | ||
| history_screen.dart | ||
| home_screen_cards.dart | ||
| home_screen_navigation.dart | ||
| home_screen.dart | ||
| manual_workout_form_parts.dart | ||
| manual_workout_screen.dart | ||
| settings_screen_rows.dart | ||
| settings_screen_thresholds.dart | ||
| settings_screen.dart | ||
| workout_screen_appbar.dart | ||
| workout_screen_body.dart | ||
| workout_screen_breaks.dart | ||
| workout_screen_dialogs.dart | ||
| workout_screen_finish.dart | ||
| workout_screen_session.dart | ||
| workout_screen.dart | ||