diff --git a/lib/marquee.dart b/lib/marquee.dart index f35261b..ef324d3 100644 --- a/lib/marquee.dart +++ b/lib/marquee.dart @@ -569,6 +569,7 @@ class _MarqueeState extends State with SingleTickerProviderStateMixin { @override void dispose() { _running = false; + _controller.dispose(); super.dispose(); } @@ -730,8 +731,13 @@ class _MarqueeState extends State with SingleTickerProviderStateMixin { physics: NeverScrollableScrollPhysics(), itemBuilder: (_, i) { final text = i.isEven - ? Text(widget.text, - style: widget.style, textScaleFactor: widget.textScaleFactor) + ? Text( + widget.text, + style: widget.style, + textScaler: widget.textScaleFactor != null + ? TextScaler.linear(widget.textScaleFactor!) + : null, + ) : _buildBlankSpace(); return alignment == null ? text diff --git a/pubspec.yaml b/pubspec.yaml index 62f10f6..a767c62 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,16 +1,15 @@ name: marquee -description: 'A Flutter widget that scrolls text infinitely. Provides many +description: "A Flutter widget that scrolls text infinitely. Provides many customizations including custom scroll directions, durations, curves as well - as pauses after every round.' -version: 2.2.3 + as pauses after every round." +version: 2.3.0 repository: https://github.com/MarcelGarus/marquee environment: - flutter: '>=3.0.0' - sdk: '>=2.17.0 <3.0.0' - + flutter: ">=3.0.0" + sdk: "^3.5.0" dependencies: - fading_edge_scrollview: ^3.0.0 + fading_edge_scrollview: ^4.1.1 flutter: sdk: flutter