flutter_staggered_grid_view icon indicating copy to clipboard operation
flutter_staggered_grid_view copied to clipboard

SliverMasonryGrid - scroll offset not being restored correctly

Open enhancient opened this issue 3 years ago • 2 comments

Firstly, thank you for this fantastic project.

After upgrading (0.6.1) to SliverMasonryGrid from the old SliverStaggeredGridView, I'm finding that the scroll position is not restored correctly when I switch tabs in my app (it scrolls to somewhere near the top). This is despite there being a PageStorageKey set on the CustomScrollView I'm using. If I swap to SliverAlignedGrid or the built in SliverGrid, it restores the position correctly, so it seems to be specifically related to SliverMasonryGrid.

Can you kindly look into this?

enhancient avatar Mar 25 '22 03:03 enhancient

+++

Hellomik2002 avatar Apr 01 '22 12:04 Hellomik2002

Can you provide a code sample I could just copy/paste and run?

letsar avatar Jul 10 '22 09:07 letsar

Closing since no response since a while.

letsar avatar Nov 01 '22 10:11 letsar