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.86k stars 468 forks source link

How to return value if dismissed #163

Open derolf opened 3 years ago

derolf commented 3 years ago

I am trying to return a value from showModalBottomSheet if the sheet gets dismissed.

How can I do that?

bierbaumtim commented 3 years ago

Since showModalBottomSheet pushes a new route, you can use Navigator.of(context).pop(Your_Result)