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

Add possibility to tap the widgets behind the ModalSheetPage #155

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

AlinaStepanova
Copy link

In some cases there is a need to access and interact with widgets that are behind the ModalSheetPage content when the modal sheet is still being opened (eg. dragging the map or taping the button).
In order to achieve that the boolean flag allowTapBehindModalPage was added that is false by default.

@fujidaiti
Copy link
Owner

fujidaiti commented Jun 5, 2024

Hi @AlinaStepanova, thanks for your contribution.

when the modal sheet is still being opened (eg. dragging the map or taping the button).

I think persistent sheets are more appropriate for these cases. Are there any reasons to prefer modal sheets?

@AlinaStepanova
Copy link
Author

Hi @fujidaiti, sorry for the late reply. In my case, I use NavigationSheet since I need to be able to handle nested navigation of multiple sheets. As far as I understood this is achieved with the modal sheets under the hood. I understand that this is rather a rare use case. In case if the same behaviour can be implemented using persistent sheets, please let me know.

@fujidaiti
Copy link
Owner

NavigationSheet can be persistent. See tutorial/imperative_navigation_sheet.dart, or tutorial/declarative_navigation_sheet.dart if you use Navigator 2.0 (such as go_router).

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

Successfully merging this pull request may close these issues.

2 participants