Browse Source

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
pull/1/head
sergeymarkow 11 months ago committed by GitHub
parent
commit
fce0114f8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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