Animated-Text-Kit icon indicating copy to clipboard operation
Animated-Text-Kit copied to clipboard

How to keep text up after animating

Open watanabekyonosuke opened this issue 1 year ago • 3 comments

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.

watanabekyonosuke avatar May 04 '24 12:05 watanabekyonosuke

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!

lisovyk avatar May 29 '24 00:05 lisovyk

So it looks like this is a long-awaited feature as it is also the same as #62.

guyluz11 avatar Oct 18 '24 10:10 guyluz11

Solved it, until my pr is merged you can just use my fork

animated_text_kit:
  git:
    url: https://github.com/guyluz11/Animated-Text-Kit.git
    ref: master

guyluz11 avatar Oct 18 '24 11:10 guyluz11