anitex
anitex copied to clipboard
Check if the text is different before _initTokens on didUpdateWidget
There's an issue when the widget gets rebuilt multiple times in a row, It won't animate. Please change the code like this:
@override
void didUpdateWidget(AnimatedText oldWidget) {
if (oldWidget.text != widget.text) {
_initTokens();
}
super.didUpdateWidget(oldWidget);
}
Thanks!