modal_bottom_sheet
modal_bottom_sheet copied to clipboard
[Sheet] Can I close the sheet programmatically or tapping outside the sheet?
Can I close the sheet programmatically or tapping outside the sheet?
As the sheet is just a new route on top, you can just call Navigator.pop(context)
to close it.
@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?
I also want to know this? Can we do like controller.relativeanimate(0...etc) when tap outside?