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 conditional modal sheet popping feature #39

Merged
merged 10 commits into from
Feb 23, 2024
Merged

Conversation

fujidaiti
Copy link
Owner

@fujidaiti fujidaiti commented Feb 23, 2024

Closes #18.

New Feature

  • Add SheetDismissible, which enables the enclosed sheet to be dismissed by a drag-down gesture. It accepts an onDismiss callback, which will be invoked when the user tries to dismiss the sheet by dragging it down, providing an opportunity to determine if the sheet should be dismissed.

Changes

  • Add tutorial code for SheetDismissible.
  • Update the Safari and the AI playlist generator example to use SheetDismissible to show a confirmation dialog to discard changes.

Breaking Changes

  • Remove ModalSheetRouteMixin.enablePullToDismiss.

@fujidaiti fujidaiti self-assigned this Feb 23, 2024
@fujidaiti fujidaiti marked this pull request as ready for review February 23, 2024 19:41
@fujidaiti fujidaiti merged commit 65331da into release-0.3.0 Feb 23, 2024
6 checks passed
@fujidaiti fujidaiti deleted the will-pop branch February 23, 2024 19:54
@fujidaiti fujidaiti linked an issue Feb 23, 2024 that may be closed by this pull request
@fujidaiti fujidaiti restored the will-pop branch February 24, 2024 03:33
@fujidaiti fujidaiti deleted the will-pop branch February 24, 2024 03:43
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.

Provide a way to conditionally interrupt a modal sheet route popping
1 participant