flutter_staggered_grid_view icon indicating copy to clipboard operation
flutter_staggered_grid_view copied to clipboard

Overlay inside CustomScrollView

Open appinteractive opened this issue 3 years ago • 2 comments
trafficstars

Hey, first thanks for that great package!

I'm using a CustomScrollView with the SliverMasonryGrid inside, now I need a way to Overlay that Sliver with a Widget (full height). How do I achive that? I cant use Stack as it seems but I also did not find any other approach. Can someone give me a gentle hint?

Here a Scribble, the 3th Sliver is the Staggerd Grid View which is "deactivated"

grafik

appinteractive avatar Jul 02 '22 21:07 appinteractive

Why don't you replace the SliverMasonryGrid upon a condition with your overlay?

letsar avatar Jul 10 '22 08:07 letsar

What do you mean with replace? The grid is underneath the overlay. I can't fake it because it's still scrollable.

I was looking for a way to wrap it with another positioned element but I don't get how.

I would need to use SliverToBox but then I can't user another sliver inside that.

What I ended up doing right now is to calculate the position and place the overlay outside the scroll view.

Any better idea? Do I miss something?

appinteractive avatar Jul 11 '22 06:07 appinteractive

Well it doesn't seem related to this package. Maybe a look to https://pub.dev/packages/sliver_tools

letsar avatar Nov 01 '22 10:11 letsar