Skip to content

PageView not swipeable on web (desktop mode) with mouse scroll and Touch pad #4935

@Shubham-VE

Description

@Shubham-VE

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

When swiping pageview it does not swipe on desktop/web
Similar issue can be found here

Expected Behavior

Pageview should swipe normally

Steps to Reproduce

  1. Create a Blank page/project
  2. Add a pageview with 2 or more children
  3. Try running it on desktop and try swiping

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT48l/HLuMlOxLhc+KqNdcdKqCYWHHk7aIJIjdZTY008J5zKB+wAYvf7P1FWTLy5T1Ziek20knse/PfqjuOfVvk5FE6WQJh5zrVQUTniYECjVYygDJeBfW1fJ+VgCHbC5rSGkSV5AO1YSVIs3UymA+6UdD7DQpjvDkY/H8q1JdeK2SrDX1iXc2URm05KZDPz

Visual documentation

None

Environment

- FlutterFlow version: FlutterFlow v5.0.10+ released November 16, 2024, Flutter version is 3.24.2
- Platform: Web
- Browser name and version: All
- Operating system and version affected: All

Additional Information

This solution worked for me but it requires manual code updation. Please handle this on your side. The updated pageview code looks like:

PageView.builder(
    scrollBehavior: const ScrollBehavior().copyWith(
        scrollbars: false,
        dragDevices: {
        PointerDeviceKind.touch,
        PointerDeviceKind.mouse,
        PointerDeviceKind.stylus,
     }),
    .
    .
    .
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugstatus: confirmedIssue has been reproduced and confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions