~/talk

The Essential Guide to BuildContext in Flutter

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter, frontend-architecture]
links:none on file
slides:none on file

BuildContext is actually the Element node that tells a widget where it sits in the three trees (widget, element, render object), demonstrated by stepping through the counter app implementation and confirming Element is the BuildContext. Common errors—missing Scaffold, Provider/Bloc lookups failing—get fixed two ways: use Builder or extract a widget so children receive a fresh context. Also shows inherited widgets power and that mediaQuery.sizeOf reduces rebuilds by depending on single properties.

AI-written summary · about

  1. 0:00Introduction
  2. 3:35What is a widget
  3. 6:32Flutter's three trees
  4. 12:31BuildContext in widgets
  5. 18:14Inherited widgets explained
  6. 21:53Fixing Scaffold errors
  7. 25:24Inherited widgets and lookups
  8. 27:51MediaQuery.of pitfalls
  9. 31:47Best practices and troubleshooting
  10. 34:40Q&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.