0

I'm reviewing the Flutter 'modal_bottom_sheet' package, and I'm wondering if there is a way to set the maximum width of a modal bottom sheet?

In my case, this is a web app, so I don't want the popup modal to take the full browser width

user2868835
  • 1,250
  • 3
  • 19
  • 33

1 Answers1

0

Try to set a constraint

showModalBottomSheet(
  context: context,
  constraints: BoxConstraints(
     maxWidth: 500              
  ),
  builder: 
)
Ozan Taskiran
  • 2,922
  • 1
  • 13
  • 23