Skip to content

3.29 causes slowdowns and jank during scrolling #163429

@JavierPerezLavadie

Description

@JavierPerezLavadie

Steps to reproduce

Add a NestedScrollView with a SliverAppBar and its animation. Then, add a grid inside the NestedScrollView. When scrolling quickly from top to bottom and bottom to top, the animation will be choppy with significant FPS drops. I used it with a StaggeredGrid, but others have encountered the issue with different grid layouts.

Similar issues found: [Reddit thread] https://www.reddit.com/r/FlutterDev/comments/1iq15je/anyone_else_noticed_worse_scrollinganimation/

Expected results

When scrolling, we expect a smooth animation like in versions 3.24–3.27.

Actual results

Fast or slow scrolling causes freezes.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Flutter (Channel stable, 3.29.0, on macOS 15.3.1 24D70 darwin-arm64 (Rosetta), locale fr-FR) [1 672ms]
• Flutter version 3.29.0 on channel stable at /Users/javi/FlutterDev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 35c388a (il y a 6 jours), 2025-02-10 12:48:41 -0800
• Engine revision f73bfc4
• Dart version 3.7.0
• DevTools version 2.42.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [2,8s]
• Android SDK at /Users/javi/Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [9,9s]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16C5032a
• CocoaPods version 1.16.2

[✓] Chrome - develop for the web [11ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2) [11ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.97.1) [10ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.104.0

Metadata

Metadata

Assignees

Labels

c: performanceRelates to speed or footprint issues (see "perf:" labels)e: device-specificOnly manifests on certain devicesf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions