aagarwal1012 / Animated-Text-Kit

🔔 A flutter package to create cool and beautiful text animations. [Flutter Favorite Package]
https://animated-text-kit.web.app
MIT License
1.66k stars 304 forks source link

Document setState/text workaround #198

Closed awhitford closed 3 years ago

awhitford commented 3 years ago

Issue #27 outlines a relatively common problem where changing the text doesn't update the widget. There is a workaround solution (specify a key that changes based on the text), but it should be documented in the README.

I'd also like to understand better what is going on, and why this is necessary.

SirusCodes commented 3 years ago

What I feel this because of this issue... We are using StatefulWidget for each animation when setState is called the widget tree rebuilds itself but it only checks for runtimeType. But if key is passed it will check for that as well.

You can look at this video by flutter team for better understanding.

subhangi2731 commented 3 years ago

can you assign this to me?

aagarwal1012 commented 3 years ago

@subhangi2731, you can work on this issue as well.

Ruhika1417 commented 3 years ago

hi @aagarwal1012 I would like to work on it if its not solved yet....Could you pls let me know if you can assign this to me?!

aagarwal1012 commented 3 years ago

@Ruhika1417, sure you can work on it. It's a minimal issue related to documentation, so I think there should not be an issue with that.

Khushi-24 commented 3 years ago

@aagarwal1012 Is the issue resolved? If not can I work on this?

aagarwal1012 commented 3 years ago

@Khushi-24 this is still available, you can work on this.

Khushi-24 commented 3 years ago

Sorry for the inconvenience. Due to some issues, I am unable to work on this.

Mohitmadhav commented 3 years ago

@awhitford can I work on this issue?

SirusCodes commented 3 years ago

@Mohitmadhav you can start working on it and open a PR.