Repository navigation
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
For me, and I'm sure a lot of other developers, using ListView.separated is pretty common. I use its separatorBuilder to provide a SizedBox of a fixed height in between my fixed-height items and the itemBuilder to build said items. I was pretty happy to see #131393 get merged into the framework, but I was disappointed to see it wasn't in ListView.separated. The widgets that they build are of two possible extents, depending on whether the index is even or not and I think that'd be a perfect case for itemExtentBuilder.
Proposal
My proposal is to add the ability to use itemExtentBuilder in the ListView.separated constructor.
Reacted by xubaolin, Shashi Kiran R, Ahmed Elsayed, Jan Budař, Wahab Alshahin, SmartVive, Khaled, ManifoldWanderer, Oleh Treskot, Hitesh Kumar Saini and 3 more
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Activity
Mairramer commentedon Aug 31, 2026
That makes sense. I needed this the other day and noticed it wasn't available. It may not be that common, but it's definitely useful when you need it.
Add itemExtentBuilder support to ListView.separated (flutter#191157)
github-actions commentedon Sep 21, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.