hienlh / autolist

Flutter auto-animated list πŸ†’

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autolist

pub package

Animated list views, automatically.

Autolist transforms regular dart lists them into a fully animated list views, automatically managing insertions and deletions.

Demo

autolist_demo

Install

Add into pubspec.yaml

...
dependencies:
  ...
  autolist:
    git:
      url: https://github.com/hienlh/autolist.git
      ref: v1.0.0
...

To use:

See more in example/lib/main.dart

  AutoList<int>(
    items: _items,
    duration: Duration(milliseconds: 400),
    itemBuilder: (context, item) {
      return Row(
        children: <Widget>[
          Expanded(
            child: Container(
              padding: EdgeInsets.all(20),
              decoration: BoxDecoration(
                border: Border(
                  top: BorderSide(),
                ),
              ),
              child: Text(
                item.toString(),
                key: Key(item.toString()),
              ),
            ),
          ),
        ],
      );
    },
  )

About

Flutter auto-animated list πŸ†’

License:BSD 2-Clause "Simplified" License


Languages

Language:Dart 96.9%Language:Swift 2.2%Language:Kotlin 0.7%Language:Objective-C 0.2%