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

Fix: Modal sheet jerks when swipe to dismiss #258

Merged
merged 9 commits into from
Oct 9, 2024
Merged

Conversation

fujidaiti
Copy link
Owner

@fujidaiti fujidaiti commented Oct 8, 2024

Related issues (optional)

Fixes #250.

Description

This PR modifies _SwipeDismissibleController to ensure that the transition animation curve remains linear during the animation triggered by a swipe-to-dismiss gesture. This is crucial to prevent the sheet from jerking when the user swipes it down, as reported in #250. See the comments in the _handleDragEnd method for a more detailed explanation.

Summary (check all that apply)

  • Modified / added code
  • Modified / added tests
  • Modified / added examples
  • Modified / added others (pubspec.yaml, workflows, etc...)
  • Updated README
  • Contains breaking changes
    • Created / updated migration guide
  • Incremented version number
    • Updated CHANGELOG

@fujidaiti fujidaiti self-assigned this Oct 8, 2024
@fujidaiti fujidaiti marked this pull request as ready for review October 9, 2024 14:26
@fujidaiti fujidaiti merged commit 6900149 into main Oct 9, 2024
9 checks passed
@fujidaiti fujidaiti deleted the fix-jerky-motion branch October 9, 2024 14:26
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.

Modal sheet jerks when swipe to dismiss
1 participant