Upgrade to Pro — share decks privately, control downloads, hide ads and more …

No More Leaks: Detect & Prevent Memory Leak

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

No More Leaks: Detect & Prevent Memory Leak

Avatar for Gidudu wisdom nico

Gidudu wisdom nico

March 21, 2026
Tweet

More Decks by Gidudu wisdom nico

Other Decks in Programming

Transcript

  1. No More Leaks: Detect & Prevent Memory Leak Michael Ogundipe

    Mobile Developer, Learningkav Nicholas Gidudu @syntax007
  2. Nicholas Gidudu About Me__ Human Ugandan Snr. Software Developer Builder

    of impactful tech and people FLUTTERBYTES CONFERENCE 2025
  3. Michael Ogundipe About Me__ Human Nigerian Snr. Mobile Developer Never

    Ending Student of Life FLUTTERBYTES CONFERENCE 2025
  4. Expectations Practical techniques to detect, debug, and prevent leaks Why

    Garbage Collection can’t catch every leak How Dart’s Garbage Collection works How Memory Leaks happen in Flutter What is a Memory Leak FLUTTERBYTES CONFERENCE 2025
  5. FLUTTERBYTES CONFERENCE 2025 What is a Memory Leak? A memory

    leak happens when an app keeps using memory that it no longer needs, and fails to release it.
  6. FLUTTERBYTES CONFERENCE 2025 How Memory Leaks Happen in Flutter •

    Flutter apps rebuild widgets frequently. • Objects like controllers, streams, and listeners live beyond widget rebuilds. • If not properly disposed, they remain in memory.
  7. FLUTTERBYTES CONFERENCE 2025 Preventing Memory Leaks • Always call dispose()

    in Stateful Widgets. • Cancel StreamSubcriptions and remove listeners. • Avoid static/global caches unless necessary. • Use Flutter’s mounted before calling setState() after async calls.