Skip to content
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

[Performance] Too many repaints while scrolling #158

Open
aytunch opened this issue Jul 11, 2022 · 1 comment
Open

[Performance] Too many repaints while scrolling #158

aytunch opened this issue Jul 11, 2022 · 1 comment

Comments

@aytunch
Copy link

aytunch commented Jul 11, 2022

When using a normal ListView.builder or any kind of scrollable, the whole app does not rebuild.
But when using GroupedListView and when we are scrolling the whole page rebuilds causing unnecessary CPU and battery load.

You can see this by enabling;

Future<void> main() async {
  debugRepaintRainbowEnabled = true;
  debugRepaintTextRainbowEnabled = true;

When colors change, rebuild happens for those widgets.

Screen.Recording.2022-07-11.at.23.16.38.mov
@Shamsudeen12
Copy link

I have another issue where it takes a while for the screen to open up
Do you think it's related?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants