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

How to keep text up after animating #340

Open
watanabekyonosuke opened this issue May 4, 2024 · 1 comment
Open

How to keep text up after animating #340

watanabekyonosuke opened this issue May 4, 2024 · 1 comment

Comments

@watanabekyonosuke
Copy link

I have a couple of Text objects animating but once the Flicker animation is done, the text doesn't stay up on the screen. Although I set both the repeatingForever and isRepeatingAnimation to false, the animation fades out and then the text stays disappeared.

Here is my code:

SizedBox(
width: MediaQuery.of(context).size.width,
child: DefaultTextStyle(
style: const TextStyle(color: Color(0xffbdbdbd), fontFamily: 'Jersey 15', fontSize: 50),
child: Center(
child: AnimatedTextKit(
isRepeatingAnimation: false,
repeatForever: false,
animatedTexts: [
TypewriterAnimatedText('I Gift You...'),
FadeAnimatedText(widget.contact.name),
],
),
),
),
),

Thank you in advance.

@lisovyk
Copy link

lisovyk commented May 29, 2024

Came here to see people handle advanced animations – and this is one of the much needed things.. I guess you could use a Stack and Timer to show another widget with your text when animation ends... but this should really be availabe out-of-the-box in such a package. Looks promising though!

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