~~The issue:
When scrolling scrolling down a list of items, SliverStaggeredGrid executes itemBuilder() for every item in its data set whenever a single item becomes visable in the viewport, this appears to cause unacceptable performance degredation on both UI and logic threads, 10fps etc.~~
A large number of cells are rebuilt each frame when scrolling.
It also seems to agressively call staggeredTileBuilder() though I'm not sure if that's by design.
Environment information: Flutter version 1.12.13+hotfix.7 Dart version 2.7.0 Platform: android-29, build-tools 29.0.3
Testing devices: Android device on API level 29 Android emulator for API level 29
Runtime environments tested: Debug Profile
~~The issue: When scrolling scrolling down a list of items,
SliverStaggeredGrid
executesitemBuilder()
for every item in its data set whenever a single item becomes visable in the viewport, this appears to cause unacceptable performance degredation on both UI and logic threads, 10fps etc.~~A large number of cells are rebuilt each frame when scrolling.
It also seems to agressively call
staggeredTileBuilder()
though I'm not sure if that's by design.