animated_list_view_scroll 1.0.2 animated_list_view_scroll: ^1.0.2 copied to clipboard
A widget that provides a list view with scrolling animation. You can set the animation for each object and other interesting features!
🌟 AnimatedListViewScroll #
Provides a listview with animation on the scroll
🎯 Installing #
dependencies:
animated_list_view_scroll: any
📥 Import #
import 'package:animated_list_view_scroll/animated_list_view_scroll.dart';
🎮 How To Use #
AnimatedListViewScroll(
itemCount: 1000, //REQUIRED
itemHeight: 60, //REQUIRED (Total height of a single item must contains optional padding or margin)
animationOnReverse: true,
animationDuration: Duration(milliseconds: 200),
itemBuilder: (context, index) {
return AnimatedListViewItem(
key: GlobalKey(), //REQUIRED
index: index, //REQUIRED
animationBuilder: (context, index, controller) {
Animation<Offset> animation = Tween<Offset>(begin: Offset(1.0, 0.0), end: Offset.zero).animate(controller);
return SlideTransition(
position: animation,
child: Container(
height: 60,
child: Card(
child: Text(index.toString()),
),
),
);
},
);
},
);
🚀 Showcase #
🚧 Bugs/Requests #
If you encounter any problems feel free to open an issue. If you feel the library is missing a feature, please raise a ticket on Github and I'll look into it. Pull request are also welcome.
❗ Note #
For help getting started with Flutter, view our online documentation.
For help on editing plugin code, view the documentation.
📃 License #
Apache 2.0 License