From 7ad76d02c13e8934c669cf8484001206df4a13e3 Mon Sep 17 00:00:00 2001 From: markow Date: Sat, 20 Jan 2024 14:58:15 +0300 Subject: [PATCH] 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 --- 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;