Skip to content

hienlh/autolist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()),
              ),
            ),
          ),
        ],
      );
    },
  )