Advanced Memory Management in Flutter
summary
Demo app reproduces common Flutter memory faults and fixes them live with Flutter DevTools, showing leaking patterns from uncancelled timers and stream subscriptions and from static caches that retain tens to hundreds of MB, versus transient 50MB buffer bloat that GC reclaims. Heavy CPU work moved to isolates via compute/isolate.run prevents 3–4s UI freezes. A singleton example holds ~300MB after pop while DI clears it, proving lifetime and disposal matter.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 2:09Memory management model
- 6:04Memory leaks demo
- 9:19Memory bloat vs leaks
- 11:06Offloading to isolates
- 13:43Preventing rebuild storms
- 17:03Dependency injection versus singletons for memory
- 19:37Key takeaways and closing remarks
related talks
19mLazy Flutter performance
40mThread by Thread: The Hidden Battle for Flutter Stability
38mDebugging performance issues with the Flutter DevTools
19mFight, Flight, or Fix? Winning the Legacy Flutter Challenge
02mDebug and profile your app with Flutter DevTools
49mDemystifying performance tune up in Flutter and Dart
53mPlugging Memory Leaks With The Chrome Dev Tools
31mBuilding Consistently Fast Flutter Apps
