Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[android] platform view gestures/scrolling issue #119337

Closed
@delfme

Description

@delfme

I have found out an issue with scrolling flutter ListView when a native widget is on the screen.
I have always thought this issue was due to overall performance limits with platform views.
But lately I noticed it might be due to gestures (see Steps to Reproduce).

Tested it on master 3.7.0-28.0.pre.7, android 12SKQ1.211006.001

Steps to Reproduce

Unfortunately code is closed, but you can check vid below.
On the screen we have a flutter listView with a few flutter text elements.
On the bottom we also have a simple wrapper to android EditText.

Scrolling listView is janky on android.
If I keep the finger on the screen during scrolling, it is not janky anymore.
This makes me think that issue may be related to gestures somehow.

Expected results:
Listview should scroll smoothly. It is such as long as my finger is kept on the screen during scrolling (vid below).

good.MP4

Actual results:
Listview scrolling is janky (here I'm raising up my finger during scrolling)

bad.MP4

Flutter doctor:

[✓] Flutter (Channel master, 3.7.0-28.0.pre.7, on macOS 12.2 21D49 darwin-arm64, locale en-IT)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions