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.83k stars 461 forks source link

[Sheet] Can I close the sheet programmatically or tapping outside the sheet? #401

Open ferrarafer opened 2 months ago

ferrarafer commented 2 months ago

Can I close the sheet programmatically or tapping outside the sheet?

orestesgaolin commented 1 month ago

As the sheet is just a new route on top, you can just call Navigator.pop(context) to close it.

ferrarafer commented 1 month ago

@orestesgaolin that doesn't work. I'm using a Sheet, not a SheetRoute.

Also, there is interaction on the available zone behind the Sheet, while in a common bottom sheet would be a frozen (with opacity) effect and no interaction with the widget below Is there a way to change this behavior?

ember11498 commented 1 month ago

I also want to know this? Can we do like controller.relativeanimate(0...etc) when tap outside?