Browse Source

Fix issue with updating short text

If an application changes short text to short text AutoScrollText do not change its text to the new one
main
markow 11 months ago
parent
commit
7ad76d02c1
  1. 2
      lib/auto_scroll_text.dart

2
lib/auto_scroll_text.dart

@ -421,7 +421,7 @@ class _AutoScrollTextState extends State<AutoScrollText> {
}
void _onUpdate(AutoScrollText oldWidget) {
if (widget.text != oldWidget.text && _endlessText != null) {
if (widget.text != oldWidget.text) {
setState(() {
_endlessText = null;
_originalTextWidth = null;

Loading…
Cancel
Save