From fce0114f8ec80996d59c2f91692fcab49569aea5 Mon Sep 17 00:00:00 2001 From: sergeymarkow <34936157+sergeymarkow@users.noreply.github.com> Date: Sat, 20 Jan 2024 14:42:45 +0300 Subject: [PATCH] Fix issue with updating short text If an application changes shor text to short text AutoScrollText do not change its text to the new one --- lib/auto_scroll_text.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auto_scroll_text.dart b/lib/auto_scroll_text.dart index 67fd89a..0ef98a2 100644 --- a/lib/auto_scroll_text.dart +++ b/lib/auto_scroll_text.dart @@ -421,7 +421,7 @@ class _AutoScrollTextState extends State { } void _onUpdate(AutoScrollText oldWidget) { - if (widget.text != oldWidget.text && _endlessText != null) { + if (widget.text != oldWidget.text) { setState(() { _endlessText = null; _originalTextWidth = null;