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

[depends on nullsafety] Friction fix revived #66

Merged
merged 7 commits into from Apr 8, 2021

Conversation

micimize
Copy link
Collaborator

@micimize micimize commented Mar 20, 2021

closes #53

This is pretty much the same change as #54, except that:

  • It is carefully merged onto Migrate to nullsafety #65
  • I replaced AnimationPadding.none() with AnimationPadding.bottomOnly() because that is actually what the old default behavior was, getting rid of the easy fling offscreen issue
  • I added an example of how to use various padding options

Copy link
Owner

@mcrovero mcrovero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really like the approach with the Animation Padding.
Just one thing, while testing on the iOS simulator, I noticed that in the .bottomOnly() (old default) the drag is behaving unexpectedly if the drag gesture goes above the top end of the bottomsheet. Probably the bug was already present before the change as I don't remember testing it in a similar scenario. What do you think?

@micimize
Copy link
Collaborator Author

@mcrovero you're right – turns out my friction fix wasn't adequate. The issue wasn't just that friction should be divided by, but also that it should be 1 + (widget.dragFriction...). Should be fixed now

@micimize micimize requested a review from mcrovero March 27, 2021 18:14
Copy link
Owner

@mcrovero mcrovero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me, great work!

@micimize micimize merged commit b03d4f6 into mcrovero:master Apr 8, 2021
@micimize micimize deleted the friction-revived branch April 8, 2021 14:46
@micimize
Copy link
Collaborator Author

micimize commented Apr 8, 2021

published as 1.0.0

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.

dragFriction is reversed
2 participants