~/talk

Plug the Leak: Memory Management in Flutter

Talkat Fluttercon Europe 2023 · 2023-07-05..07-07· [flutter, web-performance]
links:none on file
slides:none on file

A small demo app deliberately leaks a TextEditingController left undisposed and a singleton list that adds a million objects per tap, producing 3 leaks and about 6 million objects (~90 MB) visible in the profiler. Diagnosis uses Flutter DevTools memory view together with leak_tracker package to locate the retaining path to initState and the offending methods. Fixes are concrete: call dispose, null out surviving references, use weak references or mixins for disposal, enable lint rules and prefer const where possible.

AI-written summary · about

  1. 0:00Introduction
  2. 2:07What is memory leak
  3. 5:38Objects and references
  4. 8:28Memory allocation
  5. 12:03Finding memory leaks
  6. 19:05Fixing common leaks
  7. 21:14Optimization techniques
  8. 27:42Recap and summary
  9. 29:06Q&A and closing
~/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.