-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix(flutter_todos): fix scroll freeze by using ListView.builder instead. #4270
Comments
Thanks for catching that! Would you like to open a PR to fix that? |
Hello felangel! My changes are minimal and should not break anything. However, I only tested it on my NixOS machine, which is of course Linux. Keep up the good work! 👍🏻 |
The scroll freeze issue has been resolved by replacing ListView with ListView.builder. The builder constructor optimizes performance by only building the visible items in the list, which is particularly effective for large datasets. Updated code snippet:
Explanation:
This change should help maintain smooth scrolling and improve the overall performance of the TodosOverviewPage. Let me know if there are any further issues! |
@xoliq0v Thank you, can you please review my pull request? |
I fixed scroll freeze when I switched to using ListView.builder instead.
bloc/examples/flutter_todos/lib/todos_overview/view/todos_overview_page.dart
Lines 103 to 128 in 0634444
The text was updated successfully, but these errors were encountered: