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

chore: How to integrate with existing animations #34

Closed
Solido opened this issue Jan 6, 2025 · 3 comments
Closed

chore: How to integrate with existing animations #34

Solido opened this issue Jan 6, 2025 · 3 comments

Comments

@Solido
Copy link

Solido commented Jan 6, 2025

Reading the documentation I found the setup easy but I'm not sure how I would replace animations in an existing app that rely on Flutter or Flutter lib like animate.
Any suggestions?

Thanks!

@timcreatedit
Copy link
Contributor

Hi @Solido!

It really depends on your use-case! Existing libs like animate can not easily be replaced as far as I'm aware, they need to first support springster on their end.

For any place where you use an AnimationController, you can now replace it with a SpringController. A lot of the time, however, Things like AnimatedContainer, AnimatedOpacity, etc. can be replaced with either SpringBuilder or SpringBuilder2D, where you interpolate the values in the builder function.

In the future, it could be nice to provide spring-variants of the Flutter-internal animated widgets.

@Solido
Copy link
Author

Solido commented Jan 7, 2025

Thanks @timcreatedit for the clear explanation. It's really the effect I would like to share with my user, you demonstrate a better feedback from interactions.
I'll see how I can move on an integrate it.

@Solido Solido closed this as completed Jan 7, 2025
@Solido
Copy link
Author

Solido commented Jan 7, 2025

gskinner/flutter_animate#148

I'm asking!

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

No branches or pull requests

2 participants