Flutter Scrolling Widgets: ListView, GridView, CustomScrollView
By Rahul Mehta · Published · Updated · 4 min read

Most Flutter screens are a scrollable with something inside it, and the widget you choose decides how the screen behaves once the data grows past the first viewport. Choosing ListView when you need mixed sections, or a Column wrapped in SingleChildScrollView for a 300-row feed, is the difference between a screen that scrolls at 60fps and one that stutters on mid-range hardware.
This guide matches each scrollable widget to the layout problem it actually solves. You will see when ListView is enough, where GridView pays off, and why CustomScrollView with slivers is the tool for screens that mix headers, grids and lists that must scroll as one surface.
ListView: The Default for One-Dimensional Feeds
ListView is a one-axis scrollable that builds children lazily when you use its default constructor with itemBuilder. That laziness is the whole point: a ListView.builder with 5,000 items keeps only the visible rows plus a small cache extent in memory, typically around 10 to 20 rows on a phone screen. Each row's build cost is what matters, so keep row widgets small and pass const where possible.
For short, fixed lists under roughly 20 items, ListView with an explicit children list is fine and simpler to read. Past that, itemBuilder is the safer habit. ListView.separated adds dividers without wrapping rows in extra Padding widgets, which keeps the element tree shallower and avoids rebuilding the separator on every scroll tick.
Horizontal lists use the same widget with scrollDirection: Axis.horizontal, and they size themselves to the cross axis, so give the parent a fixed height or wrap in SizedBox. Nested lists inside another scrollable need shrinkWrap: true plus physics: NeverScrollableScrollPhysics, but treat that as a smell: if you nest often, you want slivers instead.
- Use ListView.builder past ~20 items
- itemExtent helps only when all rows share a fixed height
- ListView.separated avoids extra wrapper widgets
- Horizontal lists need a bounded cross-axis size
GridView: When Items Share a Shape
GridView is for content where every cell has the same structure: photo galleries, product tiles, category chips, emoji pickers. Its power is the delegate: SliverGridDelegateWithFixedCrossAxisCount gives equal columns, while SliverGridDelegateWithMaxCrossAxisExtent adapts column count to width, which is what you want on tablets and foldables.
The trap is childAspectRatio. Grid cells take their width from the delegate and derive height from that ratio, so a fixed ratio of 1.0 breaks the moment a product title wraps to two lines. Either constrain cell content to a predictable height or compute the ratio from MediaQuery and a measured content height.
For grids with a few hundred cells, GridView.builder is fine. If cells load network images, pair it with a cache and decode at the cell size rather than the source resolution: decoding a 1200px image into a 180px cell wastes several megabytes of memory per visible row.
- Fixed column count vs max cross-axis extent
- childAspectRatio breaks with variable text length
- Decode images at cell size, not source size
- GridView.builder for anything beyond a couple of screens
| Widget | Best for | Lazy building | Typical item range | Watch out for |
|---|---|---|---|---|
| ListView | Single-column feeds, chat, settings | Yes with builder | 20 to 10,000+ | Eager children list on long data |
| ListView.separated | Feeds with dividers | Yes with builder | 20 to 5,000 | Divider height changing itemExtent math |
| GridView | Galleries, tiles, pickers | Yes with builder | 20 to 2,000 | childAspectRatio with wrapping text |
| SingleChildScrollView + Column | Static short forms | No | Under 20 widgets | Builds everything eagerly |
| CustomScrollView | Mixed headers, grids, lists | Yes (slivers) | Any size | Sliver order and unbounded heights |
| NestedScrollView | Collapsing header plus tabs | Yes (inner) | Any size | Multiple ScrollControllers |
CustomScrollView and Slivers: One Scroll Surface
CustomScrollView takes a list of slivers and scrolls them as a single surface. That solves the classic problem of a header, a horizontal carousel, a section title, a grid and a footer that must all move together. With a Column inside SingleChildScrollView, every child builds eagerly, including off-screen grids, so memory grows with content rather than viewport.
SliverList, SliverGrid and SliverToBoxAdapter are the everyday pieces. SliverAppBar gives you a collapsing header for free, and SliverPersistentHeader pins a section title while its content scrolls. Because each sliver only builds what intersects the viewport, a CustomScrollView with 2,000 grid cells and a tall header behaves the same as one with 20.
Mixing slivers takes a little planning: order matters, and a sliver has no intrinsic height, so anything that needs a bounded size must be wrapped in SliverToBoxAdapter with a SizedBox. Once the structure clicks, it replaces most nested-scroll hacks in a codebase.
- SliverList, SliverGrid, SliverToBoxAdapter cover most screens
- SliverAppBar handles collapsing headers
- SliverPersistentHeader pins section titles
- No intrinsic height: bound anything that needs a size
Nested Scrolling and ScrollPhysics
Two scrollables on the same axis fight for gestures. The usual fix is shrinkWrap plus NeverScrollableScrollPhysics on the inner list, which makes it build all children eagerly, so it is acceptable only for short inner lists of perhaps 10 to 30 items. For longer inner content, convert the outer scrollable to a CustomScrollView and make the inner content a sliver.
CustomScrollView with NestedScrollView is the standard pattern for a collapsing profile header plus tabbed lists. Set the inner scrollables to ClampingScrollPhysics so the outer header does not bounce independently, and use a ScrollController only on the outer view. Keeping one controller avoids the double-listener bugs that show up as jumpy offsets.
PageStorageKey matters more than people expect: give each scrollable a key when it lives in a tab or a route that rebuilds, and the scroll offset survives rebuilds instead of snapping back to the top.
Performance Numbers That Matter
Frame budget is 16.6ms at 60Hz and 8.3ms at 120Hz. Building and laying out a simple ListView row usually costs well under 1ms; the expensive parts are images, shadows and text layout with custom fonts. If jank appears, profile in release mode, since debug builds are several times slower and mislead you.
Keep the cache extent modest. The default cacheExtent of 250 logical pixels is reasonable; raising it to 2,000 to 'preload' keeps dozens of extra rows alive and often makes first-scroll jank worse rather than better. Use RepaintBoundary around rows with images or gradients only after profiling shows paint time dominating.
- 16.6ms budget at 60Hz, 8.3ms at 120Hz
- Profile in release mode, never debug
- Default cacheExtent of 250px is usually right
- Add RepaintBoundary after measuring, not before
Choosing in Practice
Start with the simplest widget that matches the data shape: ListView for one column, GridView for a uniform grid, CustomScrollView the moment two different section types must scroll together. If you find yourself nesting scrollables or wrapping a grid in a Column inside SingleChildScrollView, that is the signal to move to slivers.
Row count is not the deciding factor; section variety is. A 1,000-item ListView is routine, while a five-section screen mixing headers and grids is where slivers earn their keep. If you are also tuning list adapters on the native side, the same laziness reasoning applies, as covered in how to size a RecyclerView adapter for smooth lists.
- ListView: single-axis feed
- GridView: uniform cells
- CustomScrollView: mixed sections, one scroll
- Nested scrollables: convert to slivers
- Match the widget to the data shape, not the row count
- Use builder constructors past roughly 20 items
- CustomScrollView replaces nested-scroll hacks
- Keep cacheExtent near the default and profile in release mode
Specialises in setup guides, build tooling and performance checks for mobile projects. Regularly benchmarks lists, scrolling and startup behaviour to give readers concrete numbers.


