aagarwal1012 / aagarwal1012/Animated-Text-Kit

The component has been re-rendered when slide into the screen

Ouverte
#339 0 commentaires 0 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

**Describe the bug**
animated_text_kit: 4.2.2

When I scroll through the list, turn off the screen, and then slide into the screen, the animation-text-kit TyperAnimatedText in the list, which had already finished animating, gets a new animation and starts printing again! It seems to be affected by the ListView caching mechanism.

**To Reproduce**
Steps to reproduce the behavior:
1. open a page and use ListView.builder ,set count with 20,the item return animated_text_kit TyperAnimatedText widget,
2. in current screen,TyperAnimatedText animation works,all TyperAnimatedText start to show animation at same time ,
3. slide out the screen,and then slide into the screen
4. the TyperAnimatedText restart animate like rebuild

**Expected behavior**
TyperAnimatedText show animation just when first build

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Flutter:**
Framework • revision 78666c8dc5 (4 months ago) • 2023-12-19 16:14:14 -0800
Engine • revision 3f3e560236
Tools • Dart 3.2.3 • DevTools 2.28.4

**Dart:**
- version

**Additional context**
Add any other context about the problem here.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Look at the TyperAnimatedText widget's lifecycle and how it interacts with ListView.builder's caching. Check the widget's state management to see if animation restarts on re-insertion. Run the provided reproduction steps in a Flutter app to observe the bug, then examine the widget's build and dispose methods.

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

Évaluation

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

Recevez les nouvelles issues par e-mail

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