7 Flutter Performance Fixes That Cut Our Jank in Half (Real Numbers from a Production App)
Short answer: The biggest Flutter performance wins are not exotic — they are const constructors, ListView.builder instead of Column, cached images, and keeping heavy work off the UI thread. On SARAIKI STAR, our TikTok-style short-video app, these seven fixes cut dropped frames in the feed by roughly half and took average feed scroll from visibly janky to smooth on a mid-range Android phone. Here is exactly what we changed, and the numbers we saw.
1. Const constructors everywhere it matters
Flutter rebuilds widgets that are not const every time their parent rebuilds. In a video feed, that means every frame tick can rebuild dozens of widgets.
We ran flutter analyze and fixed every missing-const warning in the feed, cards, and buttons. It is boring work. It is also the single cheapest win in Flutter: zero behaviour change, measurable frame-time improvement. Rule of thumb: if a widget never changes, mark it const. If your linter is not flagging this, enable prefer_const_constructors today.
2. ListView.builder, never Column, for feeds
Our first feed prototype used a Column inside a SingleChildScrollView. Every video card in the list was built upfront — all 140 of them. Memory spiked, first paint was slow, and scrolling stuttered.
ListView.builder only builds what is on screen. Switching cut initial feed build time from over 2 seconds to under 400ms on our test device, and memory use dropped by more than 60%. The same applies to any long list: comments, search results, chat history. If the list can grow, it must be a builder.
3. Cache images — and size them before they load
Unoptimised images are the most common cause of jank I see in client apps. A 4000px photo displayed in a 120px avatar still gets decoded at full size unless you tell Flutter otherwise.
We use cached_network_image with explicit memCacheWidth / memCacheHeight matched to the display size, plus a small placeholder. Thumbnails in our feed are requested at 480p from Supabase Storage; the full 720p version loads only when the user opens the video. Result: feed scrolling stopped hitching every time a new thumbnail appeared, and data use per session fell by about a third.
4. Keep video players mounted only when needed
A TikTok-style feed with a player per page will eat your phone alive. We mount a video player only for the current page and the next one — a two-page window. Everything else is disposed.
This is the difference between an app that plays smoothly for 20 minutes and one that starts dropping frames after two. The pattern generalises: expensive resources (players, maps, animations) should exist only while they are visible or about to be visible.
5. Move heavy work off the UI thread
Image compression used to run on the main isolate during publish, and the UI froze for seconds. We moved compression to a background isolate with compute(), and the publish screen stayed responsive throughout.
Anything that takes more than ~16ms belongs off the UI thread: image processing, JSON parsing of large payloads, encryption. If a button tap freezes the screen, profile first — Flutter DevTools will show you the long frame — then move the work.
6. Debounce search and throttle rebuilds
Our search field fired a network query on every keystroke. Typing "saraiki" sent seven requests, and the results list rebuilt seven times. Debouncing to 300ms cut requests by roughly 80% and made typing feel instant.
The same thinking applies to state: do not call setState (or notify listeners) on every intermediate value. Batch updates, throttle streams, and only rebuild the widgets that actually changed — ValueListenableBuilder and Selector exist for exactly this.
7. Measure with DevTools, not feelings
Every fix above was verified in Flutter DevTools: the performance overlay, the timeline, and the memory tab. "It feels faster" is not a measurement. Before optimising, record a baseline: average frame time, worst frame time, memory at rest. After each change, re-record. We found two of our "obvious" optimisations did nothing at all — and one change we expected to be minor was the biggest win.
FAQ
What is the single biggest Flutter performance win?
For most apps, replacing eagerly-built lists with ListView.builder and adding const constructors. Both are cheap and both show up immediately in frame times.
How do I find what is causing jank in my Flutter app?
Open Flutter DevTools, turn on the performance overlay, and scroll through the slow screen. Long frames show up as red bars; the timeline tells you whether the UI thread or the raster thread is the bottleneck.
Do I need a high-end phone to test performance?
No — test on the cheapest phone your users actually own. If it is smooth there, it is smooth everywhere. Our reference device is a mid-range Android phone, not a flagship.
Is Flutter fast enough for a TikTok-style video feed?
Yes. Our app, SARAIKI STAR, runs a full-screen vertical video feed with preload, likes, comments and live streaming in Flutter, and it holds 60fps on mid-range hardware after the fixes above. The framework is rarely the bottleneck — the way the app uses it is.
I build production Flutter apps in Lahore — SARAIKI STAR (short video), MyRide (ride-hailing), and the AI Challenge app — and I sell the cleaned, documented source of my two biggest apps as templates: ClipFlow, the short-video app template ($49). My full portfolio is at mohsin-abid-portfolio.netlify.app, and my open-source work is on GitHub.