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 10 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) { void _onUpdate(AutoScrollText oldWidget) {
if (widget.text != oldWidget.text && _endlessText != null) { if (widget.text != oldWidget.text) {
setState(() { setState(() {
_endlessText = null; _endlessText = null;
_originalTextWidth = null; _originalTextWidth = null;

Loading…
Cancel
Save