How to limit draggable scrollable sheet to take height according to its child height in flutter? How to limit draggable scrollable sheet to take height according to its child height in flutter? flutter flutter

How to limit draggable scrollable sheet to take height according to its child height in flutter?


the initialChildSize is the height of your ScrollView before its actually scrolled, so that means you can actually decide what it would look like. here is an example![the draggable scrollsheet here has initialChildSize: 0.1,maxChildSize: 1,minChildSize: 0.1,]1

and this is the sheet after full scroll, i have actually wrapped the sheet with container that have a fixed height