flutter_staggered_grid_view
flutter_staggered_grid_view copied to clipboard
Memory does not decrease with a large list.
Memory does not decrease with a large list. I tried SliverStaggeredGrid.builder and SliverStaggeredGrid.countBuilder with a large number of tiles. When I scroll, the old item in the grid which disappeared still alive and took lots of my memory. The problem is when my list has many items. App will crash because the memory is not enough. => I tried to change to Gridview.builder. The problem is solved. Gridview.builder release old item which disappeared and rebuild when items are showed on screen.
any one has a solution for this situation?
The reason for this is that all children of the grid are cached indefinitely.
Currently there is no way of disabling this behaviour. However, I have opened PR #188 that allows this.
me too. and study on it.
go with waterfall_flow: ^3.0.1 it working good
I experienced the same problem, which is a deal breaker for me, as I have 1000+ items in the grid. Especially when rotating the phone, it's horrendous to redraw, and I can see it going through all items up to the scroll point. I initially thought there was something wrong with my implementation, but now I see a lot of people with the same problem. I am currently using GridView.builder, which is fast, no problems, except that I'm stuck with same size tiles.
Can you test with the latest 0.5.0 preview? https://pub.dev/packages/flutter_staggered_grid_view/versions/0.5.0-dev.1
Use https://pub.dev/packages/waterfall_flow it working good no issues of size and large data
On Mon, Dec 13, 2021, 12:04 AM Romain Rastel @.***> wrote:
Can you test with the latest 0.5.0 preview? https://pub.dev/packages/flutter_staggered_grid_view/versions/0.5.0-dev.1
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/letsar/flutter_staggered_grid_view/issues/180#issuecomment-991948266, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJSVTUNTLAG7ME544PLWZTUQTTKRANCNFSM45X4I3CQ .
This comment does not help. The package has been rewritten and the performance issues has been resolved for what I can tell. @vantrung8794 I suggest you to try the latest version available: https://pub.dev/packages/flutter_staggered_grid_view/versions/0.5.0-dev.1
Ok, I'll check it out.
On Tue, Dec 14, 2021, 1:50 AM Romain Rastel @.***> wrote:
This comment does not help. The package has been rewritten and the performance issues has been resolved for what I can tell. @vantrung8794 https://github.com/vantrung8794 I suggest you to try the latest version available: https://pub.dev/packages/flutter_staggered_grid_view/versions/0.5.0-dev.1
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/letsar/flutter_staggered_grid_view/issues/180#issuecomment-992856129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOJSVTSGXBQ7LQZH2OFYSJDUQZIRVANCNFSM45X4I3CQ .
confirmed
This comment does not help. The package has been rewritten and the performance issues has been resolved for what I can tell. @vantrung8794 I suggest you to try the latest version available: https://pub.dev/packages/flutter_staggered_grid_view/versions/0.5.0-dev.1
Still have this problem nowadays with v0.6.1, I ll try waterfall_flow.
Have you some code I could just copy/paste and run to see where the issue comes from?
Closing since no response since a while.