scroll_loop_auto_scroll 0.0.1 scroll_loop_auto_scroll: ^0.0.1 copied to clipboard
A Flutter widget that scrolls widget infinitely in any direction. Provides many customizations, including custom scroll directions, pausing / delay after every round, and specifying custom durations and gap.
Scroll Loop Auto Scroll #
A Flutter widget that scrolls widgets infinitely in any direction.
Example #
Features #
- Infinite Auto Scroll
- Custom child widgets
- Delay after every round
- Custom scroll direction
- Specifying custom durations and gap
Installation #
Add scroll_loop_auto_scroll: ^0.0.1
to your pubspec.yaml
dependencies. And import it:
import 'package:scroll_loop_auto_scroll/scroll_loop_auto_scroll.dart';
How to use #
Simply create a ScrollLoopAutoScroll
widget, and pass the required params:
ScrollLoopAutoScroll(
child: Text(
'Very long text that bleeds out of the rendering space',
style: TextStyle(fontSize: 20),
),
scrollDirection: Axis.horizontal,
)
Params #
ScrollLoopAutoScroll(
child: child,
delay: Duration(seconds: 1),
disableAnimation: false,
duration: Duration(seconds: 10),
gap: 25,
pause: Duration(seconds: 5),
scrollDirection: Axis.horizontal
)
License #
MIT