0

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

1 Answers1

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