auto_scroll_text 1.0.0
auto_scroll_text: ^1.0.0 copied to clipboard
Single line text widget that scrolls its content automatically, so long texts stay readable without overlapping or being cut off by TextOverflow.ellipsis.
1.0.0 #
- Fix: no timer outlives the widget any more.
delayBefore,pauseBetweenand the newpauseAtEndare backed by cancellable timers instead ofFuture.delayed, which could not be cancelled and made widget tests fail with "A Timer is still pending even after the widget tree was disposed". - Fix: the internal
ScrollControlleris now disposed with the widget. - Fix: changing
textafternumberOfRepsrounds had been played restarts scrolling instead of leaving the widget frozen, and no longer throws when the scroll view has no clients yet. - New:
pauseAtEndholds the text at its far end before scrolling back, so the last word of a slightly overflowing text stays readable in bouncing mode. - New:
overflowapplies aTextOverflowonce scrolling has stopped after the last ofnumberOfRepsrounds. - Fix:
numberOfRepsnow counts only rounds that actually scrolled. In endless mode the first pass merely lays out the repeated text, and it used to consume a round - sonumberOfReps: 1never scrolled at all, and the widget settled while an animation was still running. - Parameter combinations that cannot work (
pauseAtEnd/pauseBetweenoutside bouncing mode,intervalSpacesoutside endless mode,overflowwithoutnumberOfRepsor together withselectable) are now asserted in the constructor instead of during build. - Requires Dart 3.8 / Flutter 3.32;
flutter_lints6, and the widget is covered by a widget test suite. - Docs: the README usage example used a
textStyleparameter that does not exist - it isstyle.
0.0.7 #
- Fix issue with updating short text
0.0.6 #
- Padding for non-scrollable text added
0.0.5 #
- Docs fix
0.0.4 #
- Minor changes
0.0.3 #
- Minor fixes
0.0.2 #
- Bouncing animation added
0.0.1 #
- Initial release.