Description
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