animated_list_view_scroll 1.0.2

Flutter Android iOS web

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()),
                ),
              );
            },
          );
        },
      ),
    );
  }
}
19
likes
110
pub points
72%
popularity

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

Documentation

API reference

Uploader

marcomihaicondrache@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_list_view_scroll