modal_bottom_sheet icon indicating copy to clipboard operation
modal_bottom_sheet copied to clipboard

How to return value if dismissed

Open derolf opened this issue 3 years ago • 1 comments

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

How can I do that?

derolf avatar May 04 '21 09:05 derolf

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

bierbaumtim avatar May 14 '21 13:05 bierbaumtim