jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.89k stars 474 forks source link

How to add Padding? #58

Closed pro100svitlo closed 4 years ago

pro100svitlo commented 4 years ago

Hello!

Can you please tell me how Padding can be applied for the whole bottomSheetDialog? For example, I need to add padding from left/right and make it transparent from the sides.

thanks!

jamesblasco commented 4 years ago

You should use containerWidget param. Check the floatingModalBottomSheet example for that: https://github.com/jamesblasco/modal_bottom_sheet/blob/master/example/lib/modals/floating_modal.dart