~/talk

Basic Strategies for State Propagation and Access Control in Flutter Widget Trees

TalkinJapaneseat DroidKaigi 2019 · 2019-02-07..02-08· [flutter, frontend-architecture]
name:robo
links:none on file
slides:none on file

Shows a concrete Flutter pattern for propagating and restricting state in the Widget tree: create small role-specific logic classes and provide them via page-scoped and app-scoped InheritedWidget instances. Routes attach pages by nesting those InheritedWidgets inside MaterialApp routes, pages check access with context.dependOnInheritedWidgetOfExactType so only allowed pages see a logic object; demonstrated with a counter app that preserves state across navigation, targeted redraw control via rebuildable or const widgets, and a simple proxy AOP utility to inject logs around methods during tests.

AI-written summary · about

  1. 0:00State propagation basics
  2. 5:18Nested widget trees
  3. 7:28State and logic separation
  4. 12:15InheritedWidget for pages
  5. 15:54Access control for pages
  6. 18:23Group access with wrappers
  7. 19:32Sharing state and logic
  8. 21:43Demo: stateful vs InheritedWidget
  9. 24:02Stateless pages with InheritedWidget
  10. 24:42Optimizing rebuilds
  11. 26:09Debugging limitations
  12. 28:03Summary
~/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.