anitex icon indicating copy to clipboard operation
anitex copied to clipboard

Check if the text is different before _initTokens on didUpdateWidget

Open naamapps opened this issue 4 years ago • 0 comments

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!

naamapps avatar Jan 14 '21 15:01 naamapps