简体   繁体   中英

Scrollable bottom sheet in Flutter

Can a bottomsheet be made scrollable? For example it opens initially upto a particular height and scrolls up as the content is scrolled. If yes, please help!

As far as I understand they are still working on it :

The DraggableScrollableSheet is here for that purpose.

This widget can be dragged along the vertical axis between its minChildSize , which defaults to 0.25 and maxChildSize , which defaults to 1.0.

You can use any Scrollable widget as child of DraggableScrollableSheet.

See the official video from Flutter team.

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