简体   繁体   中英

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).

在此处输入图像描述

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM