-
Notifications
You must be signed in to change notification settings - Fork 5
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 a spring-simulated variant #2
Comments
@timcreatedit Thank you for your suggestion! And yeah, adding spring simulations has been one of the biggest challenges for this package, which @lukepighetti also suggested on X here. To be honest, I have no knowledge about physics, so let me start by checking your |
@timcreatedit I've briefly checked your /// this internally creates spring-simulated version of `RenderAnimatedTo`
/// which uses `SpringSimulationController` or `SpringSimulationController2D` depending on the given [spring].
AnimatedTo.spring(
globalKey: _key,
spring: SimpleSpring.bouncy,
child: AnyWidget(),
), I'm still not sure my idea works well, so I'll try to implement this later. |
I would also gladly contribute this, if you want me to |
I would love to have a variant of the widget that is animated using spring simulations instead of curves.
This would allow the animations to redirect very smoothly when the position changes during the animation.
I could give this a shot, but I would solve it by adding a dependency to (my own)
springster
package. Would you be interested in that?https://pub.dev/packages/springster
The text was updated successfully, but these errors were encountered: