~/talk

Why Your Context Doesn’t Work (And How to Fix It)

Talkat Fluttercon Europe 2025 · 2025-09-24..09-26· [flutter, developer-experience]
links:none on file
slides:none on file

Explains that BuildContext is the widget’s location in the element tree and why common failures happen: snackBar/bottomSheet errors because the calling context is earlier in the same build; async callbacks crashing because the widget is disposed; and unnecessary full rebuilds from broad dependencies like MediaQuery. Concrete fixes shown with code and inspector: use Builder to get fresh context so scaffold is found, provide Bloc/Cubit above the modal or pass its value into the dialog to avoid missing providers, and check mounted before using context after await; live demo shows the filter sheet works after moving the provider.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Context issues in Flutter
  3. 5:17What is BuildContext
  4. 11:00Common scope problems
  5. 15:40Context lifecycle and async
  6. 18:56Context and performance
  7. 23:13Live demo: context problems
  8. 31:45Community resources
~/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.