Skip to content

Scrolling is janky in gridView with local images #121525

@delfme

Description

@delfme

Scrolling a gridView is janky on ios Impeller.

Tested on latest stable and master 3.8.0-15.0.pre.25, iphone 13 pro, iose 16.1.

Steps to Reproduce

Please run this example here by enabling images from Assets:
https://github.com/delfme/janky-gridview-scrolling

https://github.com/delfme/janky-gridview-scrolling/blob/0098f033403501ba8aee69121d5002fcf36c1686/lib/main.dart#L52-L64

Expected results:
Smooth scrolling.

Actual results:
See video below. Issue is hard to describe. Sometime janks are not noticeable although the feeling is not native-like, other time some jank occurs in a more noticeable way.

videozip_511.MP4

Profiling vid:
We can see initial jank frames. Then at 00:30:40 I started to scrolling a bit faster and noticed more jank frames.

Untitled.mp4

Flutter doctor:

[✓] Flutter (Channel master, 3.8.0-15.0.pre.25, 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

Labels

P2Important issues not at the top of the work lista: imagesLoading, displaying, rendering imagesengineflutter/engine related. See also e: labels.f: scrollingViewports, list views, slivers, etc.found in release: 3.7Found to occur in 3.7found in release: 3.8Found to occur in 3.8has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions