MJ

Talk · FlutterCon Europe 2025 · CityCube Berlin, Berlin, Germany · 24 September 2025

This App is Built Different: Advanced Memory Management in Flutter

FlutterCon Europe 2025 talk (Berlin) on how Dart manages memory: heap allocation, garbage collection, leaks, isolates and finding leaks in DevTools.

Most Flutter apps never think about memory until something goes wrong: the app gets slower over a long session, the OS kills it in the background, or a low-powered device starts dropping frames. This talk, given at FlutterCon Europe 2025 in Berlin, is about understanding what happens under the hood so you can fix those problems on purpose instead of by accident.

What the talk covers

The demo

The talk is built around a small demo app that leaks on purpose, so each problem can be reproduced, measured in DevTools and fixed live. The code and slides are on GitHub.

Who it is for

Flutter developers who are comfortable building apps and want to understand performance at the level below widgets, especially on mid-range phones and embedded hardware, where memory is limited and sessions run for a long time.

Key takeaways

  1. Dispose what you create, cancel what you subscribe to.
  2. Never hold on to a BuildContext beyond the frame you need it in.
  3. Measure before you optimise: DevTools heap snapshots beat guessing.
  4. Keep the UI isolate for UI; push heavy work to isolates.
Watch on YouTubeCode on GitHubSlidesSession on SessionizeOfficial event page

Related topics

Related projects

Related writing