-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Scrollbar stutter on basic ListView!! #132216
Comments
The default ScrollView list delegate is not ideal in my opinion, especially when itemCount is known. I have a more detailed implementation here, it uses too much additional information to adapt directly, though. |
Hi @GeylanKalafMohe. Thanks for filing this issue. I can almost not reproduce testing with iPhone 14 (iOS 16.4) both on the master and stable channels but can still see a little pause Simulator.Screen.Recording.-.iPhone.14.-.2023-08-09.at.14.16.00.mp4Thanks for your input @moffatman. Awaiting your response per #132216 (comment) |
Thank you for testing but actually the issue happens on your device as well. Kindly check the video, you see the scrollbar stuttering. Because you scroll fast it may not be noticable. Try to slow a little bit slower and you will notice it like my attached video. The more complex each list item is you will not the stutter even more!! |
The fixed item count was just a simplified example as it also happens when using the list length. |
Thanks for your response @GeylanKalafMohe. I am able to reproduce this on the latest untitled.webm |
The same issue happens on Android as well. As I said the more complex each list item is, the more noticeable the stutter will be, even with less list item count. |
It doesn't have to do with list item complexity, but rather the difference in height |
Could be most probably. The question is why does it happen 🤔 It should be fixed soon by the Flutter team as it impacts all Flutter apps. |
It's because the component which estimates the height of the scrolling widget, doesn't have all the information about the list that you give to ListView. And doesn't do any caching, which means as items appear and disappear off the top of the screen, the estimate changes rapidly. |
@dam-ease @moffatman Yeah but when there is no other solution the flutter team should add slight animation to get rid of this or another workaround. Also this issue does not happen when developing natively. Kindly tackle this issue. |
This is correct. Setting an itemExtent or prototypeItem would resolve this. There is also a dynamic extent proposal in #131393 This issue is a duplicate of #25652, please follow there for updates. Thank you! |
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 |
Is there an existing issue for this?
Steps to reproduce
Scrollbar
view with aListView
widget containing 200 basic itemsExpected results
No Stutter should happen
Actual results
Scrollbar is hardly stuttering. The more widgets each item has it gets worse.
Code sample
Code sample
Screenshots or Video
RPReplay_Final1691584143.2.mov
Logs
No response
Flutter Doctor output
The text was updated successfully, but these errors were encountered: