Skip to content

CarouselView demo page not functional using mouse scroll #165265

Closed

Description

@drrnbrns

This may be a docs/sample bug. I'm aware of #154618, but my main concern is that the web demo for https://api.flutter.dev/flutter/material/CarouselView-class.html does not work on the web.

When I saw the sample didn't work, I searched the page for any mention of "web" and didn't find any, so I was about to log a bug but found #154618 in a search.

I think the sample should include the workaround provided in the comments for #154618, i.e. the scrollBehavior: MyCustomScrollBehavior() code, so that the sample works and devs don't have to hunt for a comment in a bug to make CarouselView work on the web (and probably other systems that are mouse-based). Ideally the text could mention MaterialScrollBehavior and explain that this is necessary for mouse-based systems.

Even better, it would be nice if CarouselView just worked on all platforms without that scrollBehavior: MyCustomScrollBehavior() patch to MaterialApp, but I recognize there may be good reasons why it doesn't.

Activity

  1. Mairramer commented on Mar 16, 2025

    @Mairramer
    Contributor

    You need to hold Shift + scroll, and it will work normally. But I agree that it's not very intuitive and needs some adjustments.

  2. changed the title [-]CarouselView demo page not functional[/-] [+]CarouselView demo page not functional using mouse scroll[/+] on Mar 17, 2025
  3. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    p: material_uimaterial_ui package in flutter/packages
    platform-webWeb applications specifically
    a: mouseIssues related to using a mouse or mouse support
    team-designOwned by Design Languages team
    d: api docsIssues with https://api.flutter.dev/
    and removed
    in triagePresently being triaged by the triage team
    on Mar 17, 2025
  4. added
    P2Important issues not at the top of the work list
    triaged-designTriaged by Design Languages team
    on Mar 19, 2025
  5. self-assigned this
    on Apr 3, 2025
  6. added
    r: fixedIssue is closed as already fixed in a newer version
    on Apr 9, 2025
  7. github-actions commented on Apr 23, 2025

    @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.

  8. locked as resolved and limited conversation to collaborators on Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: mouseIssues related to using a mouse or mouse supportd: api docsIssues with https://api.flutter.dev/d: examplesSample code and demosframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesplatform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-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