artflutter / flutter_awesome_select

Forked from https://github.com/davigmacode/flutter_smart_select, updated legacy code, migrated to null safety and more. AwesomeSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
https://pub.dev/packages/flutter_awesome_select
MIT License
15 stars 33 forks source link

Set width of modal pop up SmartSelect? #26

Open davoutuk opened 1 year ago

davoutuk commented 1 year ago

With the modal SmartSelect is there a way to set the maximum width of the popup?

By default the popup is taking the whole screen width. For my Flutter web app, this just looks really poor, so I want to place a width constraint on the pop up form width.

I tried wrapping the SmartSelect widget with a ConstrainedBox but that didn't work