~/talk

Lifecycle of a Widget

Talkat Flutter Vikings 2022 · 2022-08-31..09-01· [flutter, frontend-architecture]
slides:none on file

Explains concrete internals: widgets create elements, render-object widgets produce render objects, and stateless/stateful classes are just immutable configs while state objects and elements hold the lifecycle. Identifies five scheduler phases (idle, transient callbacks, mid-frame microtasks, persistent callbacks, post-frame) and shows APIs: schedulerBinding.instance, WidgetsFlutterBinding.ensureInitialized, PlatformDispatcher → drawFrame, BuildOwner.buildScope. Notes setState closure runs synchronously (asserts removed in production) and that addPostFrameCallback introduces a one-frame delay before changes take effect.

AI-written summary · about

  1. 0:00Introduction to widget lifecycle
  2. 4:03Flutter tree structures explained
  3. 15:07Rendering phases in Flutter
  4. 22:09Element lifecycle deep dive
  5. 27:07Frame rendering process
  6. 33:08State object lifecycle
  7. 38:50Post-frame callbacks
  8. 40:57Summary and Q&A
~/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.