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

Create a SpringController rather than GlobalKey #1

Closed
josh-burton opened this issue Apr 23, 2020 · 1 comment
Closed

Create a SpringController rather than GlobalKey #1

josh-burton opened this issue Apr 23, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@josh-burton
Copy link

Using a GlobalKey to control an animation doesn't feel right. I feel like it's exposing an implementation detail (SpringState) to the user.

What about creating a SpringController instead? Similar to ScrollController, PageViewController etc.

@KaushickSArgekar KaushickSArgekar added the enhancement New feature or request label Apr 24, 2020
@KaushickSArgekar
Copy link
Owner

Added a Spring controller as you asked.

The issue is fixed in the latest spring 2.0 with a lot more added features.
Check it out. (https://pub.dev/packages/spring)

Thanks for the support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants