Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ferrarafer opened this issue May 2, 2024 · 3 comments

Comments

@ferrarafer
Copy link

ferrarafer commented May 2, 2024

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

@ferrarafer ferrarafer changed the title [Sheet] Can I close the sheet programmatically or taping outside the sheet? [Sheet] Can I close the sheet programmatically or tapping outside the sheet? May 8, 2024
@orestesgaolin
Copy link
Collaborator

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

@ferrarafer
Copy link
Author

ferrarafer commented May 9, 2024

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants