Straightforward widget scroller with minimal dependencies.
- optional control with
TickerTextController
, - specifying scrolling speed and curves,
- setting custom durations,
and more.
SizedBox(
width: 50, // constrain the parent width so the child overflows and scrolling takes effect
child: TickerText(
// default values
controller: tickerTextController, // this is optional
scrollDirection: Axis.horizontal,
speed: 20,
startPauseDuration: const Duration(seconds: 10),
endPauseDuration: const Duration(seconds: 10),
returnDuration: const Duration(milliseconds: 800),
primaryCurve: Curves.linear,
returnCurve: Curves.easeOut,
child: Text("Very long sentence..."),
),
);
Detailed API documentation can be found on pub.dev.
This project is MIT licensed.