todo-app/lib/ui
Krzysztof kuhy Rudnicki 085287861c Auto-sync on launch and on app background
Manual sync left a large window in which local edits had not reached
the remote, and a reinstalled device only recovered after a manual
sync. Make sync automatic so the GitHub repo (the durable store) stays
near-current and recovery is near-automatic.

- Pull on launch (once settings load) so a reinstalled device pulls its
  old changeset back without user action.
- Push when the app is backgrounded (AppLifecycleState.paused) so edits
  leave the device promptly. Lifecycle-based, not per-keystroke, to keep
  CPU/battery and GitHub API usage low.
- Best-effort: silent, skips when unconfigured, single-flight guard so a
  launch sync and a background sync never overlap; failures are swallowed
  (the manual Sync button still surfaces errors).

100% line coverage maintained.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 22:02:39 +02:00
..
capture_screen.dart Auto-sync on launch and on app background 2026-06-15 22:02:39 +02:00
markdown_view.dart Add full note view/editor with templates and Markdown render 2026-06-15 21:59:31 +02:00
note_detail_screen.dart Add full note view/editor with templates and Markdown render 2026-06-15 21:59:31 +02:00
note_editor.dart Add full note view/editor with templates and Markdown render 2026-06-15 21:59:31 +02:00
notes_list_screen.dart Add full note view/editor with templates and Markdown render 2026-06-15 21:59:31 +02:00
settings_screen.dart Add list filters/sort, status, priority rework, export/import, structured template 2026-06-15 16:52:59 +02:00