aagarwal1012 / aagarwal1012/Animated-Text-Kit

How to keep text up after animating

Đang mở
#340 3 bình luận 3 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
1.8k
Fork
321
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart, flutter
Lĩnh vực
frontend, mobile-dev
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.