Skip to content

Add itemExtentBuilder to ListView.separated #138758

Closed

Description

@Reprevise

Is there an existing issue for this?

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.

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    frameworkflutter/packages/flutter repository. See also f: labels.
    f: scrollingViewports, list views, slivers, etc.
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Nov 21, 2023
  2. added
    P3Issues that are less important to the Flutter project
    on Nov 21, 2023
  3. Mairramer commented on Aug 31, 2026

    @Mairramer
    Contributor

    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.

  4. github-actions commented on Sep 21, 2026

    @github-actions

    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 -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions