how to control flutter bottom sheet height with its inner content without fixed height? totally I just want a height change with its inner content size
Asked
Active
Viewed 566 times
0
-
1please share a code – LonelyWolf Apr 08 '20 at 18:43
-
Go through the this link. I am sure it helps you Link: https://stackoverflow.com/questions/50014342/button-width-match-parent-flutter – Raghu Mudem Apr 08 '20 at 18:45
1 Answers
0
Use a ConstrainedBox
give a minimum and maximum height and width as you need and the child of the ConsrainedBox
should be your bottom sheet container
and you are good to go.
Here is the youtube link on ConstrainedBox.
Here is more how you can deal with box constraints: https://flutter.dev/docs/development/ui/layout/box-constraints

Adithya Shetty
- 1,247
- 16
- 30