~/talk

Easy state restoration with Flutter

links:none on file
slides:none on file

State restoration prevents losing progress when the OS kills the app by saving small instance state to the restoration bucket; the demo app “Japan Nana” survives a memory kill (caused by a game that loads 3 million JSON objects) and restores spot-after-review. Implementation uses restorable types and RestorationMixin, replaces pushNamed with restorable push / restorePushNamed, integrates with go_router and workarounds for hooks by wrapping widgets and saving a restorable enum; watch for the 1 MB Android limit and use Android’s “Don’t keep activities” to test.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10State loss in Flutter apps
  3. 2:32Why state restoration matters
  4. 3:59State types and persistence
  5. 5:26Flutter’s restoration manager
  6. 7:14Limitations and best practices
  7. 8:38Setting up restoration scope
  8. 9:41Restoring navigation state
  9. 10:02Restoration mixin for widgets
  10. 11:27Hooks and restoration challenges
  11. 12:53Fixing navigation parameter issues
  12. 13:57Restoration scope for hooks
  13. 14:39Testing restoration tips
  14. 15:45Testing on Android and iOS
  15. 16:06Testing in widget and integration tests
  16. 16:49Live demo of restoration
  17. 17:10Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.