mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-22 22:22:21 +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 |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| CONTEXT.md | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
workout_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.