FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

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

Open Shubham-VE opened 1 day ago

Shubham-VE commented 1 day ago

Can we access your project?

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

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,
     }),
    .
    .
    .
)
Alezanello commented 1 day ago

Hello!

Thank you for bringing this to our attention. I can confirm that this is indeed an issue, and I’ll be forwarding it to our engineering team for further investigation.

We appreciate your patience as we work on resolving this!