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

Forced looping animation even for custom animation controllers in SpinKitWave #122

Open
Monkeyinapocket opened this issue Oct 17, 2024 · 0 comments

Comments

@Monkeyinapocket
Copy link

Hello there,

first of all thanks for the great work.

I am not sure if its a bug or a wanted feature but i tried to stop the repeating animation of the SpinKitWave with adding a custom animation controller.

It seems that the line

_controller = (widget.controller ?? AnimationController(duration: widget.duration, vsync: this))..repeat();

Forces all set animation controllers to repeat even if the custom controller does not repeat.

Moving the first braced solves my "issue".

_controller = widget.controller ?? (AnimationController(duration: widget.duration, vsync: this)..repeat());

Is this a wanted behavior or a bug?

Best,
Monkeyinapocket

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

1 participant