aagarwal1012 / aagarwal1012/Animated-Text-Kit

How to keep text up after animating

Ouverte
#340 3 commentaires 3 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Dart
Étoiles
1.8k
Forks
321
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
dart, flutter
Domaine
frontend, mobile-dev
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.