-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added curve #7
Conversation
Specifies the animation curve when the widget zoom has ended and is animating back to the original place.
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. |
lib/zoom_pinch_overlay.dart
Outdated
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}) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
LGTM. Thank you for your contribution! |
closes #1
Specifies the animation curve when the widget zoom has ended and is animating back to the original place.