Skip to content

Proposal to add currentIndex to CarouselController and onItemChanged to CarouselView  #169207

Closed

Description

@RoberRaf

Use case

Now that CarouselController supports animateToItem ...
However, there's currently no way to determine which item is currently visible. This makes it difficult to decide which index to animate to next

Proposal

  • Add a property to CarouselController (e.g., currentIndex) to expose the index of the currently visible item.

  • Add an onItemChanged callback to the CarouselView widget to notify listeners whenever the active item changes.

Activity

  1. changed the title [-]CarouselController current iten index property[/-] [+]CarouselController current item index property[/+] on May 22, 2025
  2. changed the title [-]CarouselController current item index property[/-] [+]Proposal to add `currentIndex` to `CarouselController` and `onItemChanged` to `CarouselView `[/+] on May 22, 2025
  3. added
    c: new featureNothing broken; request for a new capability
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    c: proposalA detailed proposal for a change to Flutter
    team-designOwned by Design Languages team
    and removed
    in triagePresently being triaged by the triage team
    on May 22, 2025
  4. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on Jun 4, 2025
  5. added a commit that references this issue on Jan 20, 2026
    c6fad7a
  6. github-actions commented on Feb 4, 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.

  7. locked as resolved and limited conversation to collaborators on Feb 4, 2026
  8. added a commit that references this issue on Feb 10, 2026
    e60894b
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

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions