Skip to content

Allow setting the initial state of the AnimationTextController #369

@YukiAttano

Description

@YukiAttano

Is your feature request related to a problem? Please describe.
I would like chain some of the Animations.

Describe the solution you'd like
To allow this, it should be enough to set the initial AnimatedTextState in AnimatedTextController()
EDIT: The AnimatedText should also not override this value.
change

// in _initAnimation()

 _animatedTextController.state = AnimatedTextState.playing; // remove
 _controller.forward();

to

// in _initAnimation()

// _animatedTextController.state = AnimatedTextState.playing; 
if (_animatedTextController.state == AnimatedTextState.playing) _controller.forward();

Additional context
I have a title and a subtitle where the title should start animating instantly, while the subtitle starts after that.
Both should than stay on screen.

Something like:
Title: "Welcome to my App"
Subtitle: "Before we start, we have a few questions for you"

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