-
Notifications
You must be signed in to change notification settings - Fork 28.4k
ListView/ScrollView - Scrolling jumps to the bottom regardless of items on M1 iOS Simulator #79641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@OllyDixon import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: Material(
child: ListView.builder(
itemBuilder: (context, index) {
final child = SizedBox(
height: 100,
child: Center(
child: Text(
'$index',
textScaleFactor: 5,
style: const TextStyle(color: Colors.white),
),
),
);
return index % 2 == 0
? ColoredBox(color: Colors.blue, child: child)
: ColoredBox(color: Colors.red, child: child);
},
),
),
),
);
|
@iapicca it happens on all types of scrolling views. Even SingleChild with a Colum inside of it. I tested Builder and SingleChild too. (I was trying to fix a bug for hours) |
@OllyDixon tested with this code #79641 (comment) [✓] Flutter (Channel master, 2.1.0-13.0.pre.416, on Linux, locale en_US.UTF-8)
• Flutter version 2.1.0-13.0.pre.416 at
/home/francesco/snap/flutter/common/flutter
• Framework revision b9638fb837 (10 hours ago), 2021-04-02 00:39:02 -0400
• Engine revision bed3a4a7a0
• Dart version 2.13.0 (build 2.13.0-192.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /home/francesco/Android/Sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_SDK_ROOT = /home/francesco/Android/Sdk
• Java binary at: /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_282-8u282-b08-0ubuntu1~20.04-b08)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /snap/bin/chromium
[✓] Linux toolchain - develop for Linux desktop
• clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
• cmake version 3.10.2
• ninja version 1.8.2
• pkg-config version 0.29.1
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup
for detailed instructions).
[✓] Connected device (3 available)
• Pixel 3a (mobile) • 965AY0WP5C • android-arm64 • Android 11 (API 30)
• Linux (desktop) • linux • linux-x64 • Linux
• Chrome (web) • chrome • web-javascript • Chromium 89.0.4389.114
snap
! Doctor found issues in 1 category.
|
@iapicca it's an insanly bad bug; are they even doing QA at Flutter Google? 😂 |
Hi @OllyDixon
flutter doctor -v[✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-arm, locale
en-GB)
• Flutter version 2.0.4 at /Users/nevercode/Code/flutter_stable
• Framework revision b1395592de (4 days ago), 2021-04-01 14:25:01 -0700
• Engine revision 2dce47073a
• Dart version 2.12.2
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/nevercode/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Users/nevercode/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
✗ 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 at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Users/nevercode/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/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
1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.55.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.21.0
[✓] Connected device (4 available)
• Taha’s iPhone (mobile) • 00008020-001059882212002E • ios
• iOS 14.4.2
• iPhone 11 (mobile) • 7099B239-8266-4F66-9901-A229EFE0F43D • ios
• com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
• macOS (desktop) • macos •
darwin-arm64 • macOS 11.2.3 20D91 darwin-arm
• Chrome (web) • chrome •
web-javascript • Google Chrome 89.0.4389.114
! Doctor found issues in 1 category. [✓] Flutter (Channel master, 2.1.0-13.0.pre.444, on macOS 11.2.3 20D91
darwin-arm, locale en-GB)
• Flutter version 2.1.0-13.0.pre.444 at /Users/nevercode/Code/flutter_master
• Framework revision 824b1ad3f8 (2 days ago), 2021-04-03 15:24:02 -0400
• Engine revision e393800c63
• Dart version 2.13.0 (build 2.13.0-196.0.dev)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/nevercode/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Users/nevercode/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
✗ 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 at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Users/nevercode/Library/Application
Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/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
1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.55.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.21.0
[✓] Connected device (4 available)
• Taha’s iPhone (mobile) • 00008020-001059882212002E • ios
• iOS 14.4.2
• iPhone 11 (mobile) • 7099B239-8266-4F66-9901-A229EFE0F43D • ios
• com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
• macOS (desktop) • macos •
darwin-arm64 • macOS 11.2.3 20D91 darwin-arm
• Chrome (web) • chrome •
web-javascript • Google Chrome 89.0.4389.114
! Doctor found issues in 1 category. |
@TahaTesser yes indeed; I also have a Intel MacOS build server and I was going insane trying to figure out what was causing this bug 😂🙈 |
@TahaTesser |
@iapicca |
@TahaTesser |
Forgot to mention that you can "work around" this by clicking very quickly (without moving the mouse) while it is bouncing toward the top or bottom. This immediately stops the listview from scrolling any further and allows you to click whatever you needed to click. It took me a hot minute to figure that out so I figure I should share this. Of course, this "work around" is only as good as your reflexes. |
@definitelyokay fixes are rolled out on versions newer than the current stable... so AFAIK it won't happen |
Ya the touch scrolling speed on M1 simulator is broken; one small touch will scroll to the end of the list; i think the interpolation is diff on M1 |
I wanted to validate this was fixed by #85059 but I can't even reproduce it on Flutter 2.0.3. Maybe Xcode fixed the bug in 12.5? Seems unlikely though. scroll.mov
|
I can confirm the "broken scrolling" on M1 iOS Simulator is still available with latest Flutter 2.2.2
the only solution by now is to run Simulator with Rosetta = with quite huge impact on performance :/ |
Launching Simulator as a Rosetta app doesn't reproduce it? That's really weird, the Flutter app itself is always running as a Rosetta app no matter how you launch the simulator (you can see the "Runner" process is "Intel" not "Apple" in Activity Monitor). |
That was indeed why I couldn't reproduce it--I had been running Simulator as a Rosetta app. This is definitely a Rosetta app running on a non-Rosetta simulator bug. We've seen other Rosetta simulator bugs like #74970 (comment). |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Thank you for reopening this issue! This is more so a developer experience annoyance, but would love to see this fixed ✨. IMG_1100.mp4Flutter doctor:
Device info:
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Flutter 2.0.3
iOS Simulator 14.4
M1 Macbook Pro
Whole app code below.
The view jumps to the bottom; provided a gif example.
Normal behavior on device. iOS 14.4

Incorrect. Simulator 14.4

App Code (Very standard)
The text was updated successfully, but these errors were encountered: