Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrollable bottom sheet in Flutter

Tags:

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!

like image 415
Amber Sethi Avatar asked Sep 21 '18 10:09

Amber Sethi


1 Answers

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.

like image 146
Darish Avatar answered Nov 15 '22 04:11

Darish