aagarwal1012 / aagarwal1012/Animated-Text-Kit

How to keep text up after animating

Open
#340 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.8k
Forks
321
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Look at the FadeAnimatedText implementation in the animated_texts directory. The issue is likely in how the animation controller handles the final state. Check the onFinished callback and the animation curve. Run the example app to reproduce the bug, then write a test to verify the text remains visible after the fade animation completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.