Vladimir
Vladimir

Reputation: 155

How to control CustomScrollView inside CustomScrollView?

I have widget tree which contains top-level CustomScrollView with SliverFillRemaining inside. SliverFillRemaining may contain another CustomScrollView (see picture).

enter image description here

I want to prevent scrolling of nested CustomScrollView until SliverFillRemaining will fill all viewport (because of top-level CustomScrollView). In other words I want expandable TabVeiws with scrollable grid inside.

Upvotes: 1

Views: 6486

Answers (1)

Vladimir
Vladimir

Reputation: 155

As Yann39 noted, NestedScrollView widget solves this issue perfectly. Code sample in class documentation illustrates what to do.

Upvotes: 2

Related Questions