animated_list_view_scroll 1.0.2 copy "animated_list_view_scroll: ^1.0.2" to clipboard
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!

example/lib/main.dart

import 'package:animated_list_view_scroll/animated_list_view_scroll.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'AnimatedListViewScroll Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Home(),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("AnimatedListViewScroll Demo"),
      ),
      body: AnimatedListViewScroll(
        itemCount: 1000,
        itemHeight: 60,
        animationOnReverse: true,
        animationDuration: Duration(milliseconds: 200),
        itemBuilder: (context, index) {
          return AnimatedListViewItem(
            key: GlobalKey(),
            index: index,
            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: Card(
                  child: Text(index.toString()),
                ),
              );
            },
          );
        },
      ),
    );
  }
}
32
likes
30
pub points
12%
popularity

Publisher

unverified uploader

A widget that provides a list view with scrolling animation. You can set the animation for each object and other interesting features!

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_list_view_scroll