Skip to content

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

@Monkeyinapocket

Description

@Monkeyinapocket

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions