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

Added curve #7

Merged
merged 2 commits into from
Mar 14, 2022
Merged

Added curve #7

merged 2 commits into from
Mar 14, 2022

Conversation

Shawn-sudo
Copy link
Contributor

@Shawn-sudo Shawn-sudo commented Mar 13, 2022

closes #1
Specifies the animation curve when the widget zoom has ended and is animating back to the original place.

Specifies the animation curve when the widget zoom has ended and is animating back to the original place.
@Shawn-sudo
Copy link
Contributor Author

This worked perfectly in iOS, and I'm pretty sure that this would also work well in Android, Web, and many other platforms that Flutter supports.

const ZoomOverlay(
{Key? key,
this.twoTouchOnly = false,
required this.child,
this.minScale,
this.maxScale,
this.animationDuration = const Duration(milliseconds: 100)})
this.animationDuration = const Duration(milliseconds: 100),
this.animationCurve})
Copy link
Owner

@Mayb3Nots Mayb3Nots Mar 13, 2022

Choose a reason for hiding this comment

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

This has to have a default value.
this.animationCurve = Curves.fastOutSlowIn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙊 I was not thinking about it at all!

@Mayb3Nots Mayb3Nots merged commit 95e2272 into Mayb3Nots:master Mar 14, 2022
@Mayb3Nots
Copy link
Owner

LGTM. Thank you for your contribution!

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.

Please add dismiss curve like instagram (bouncy feel)
2 participants