animation_list 0.0.2 copy "animation_list: ^0.0.2" to clipboard
animation_list: ^0.0.2 copied to clipboard

outdated

A Flutter package project that is a simple animation listview widget.

Animation List #

A simple animation listview widget.
When it is built, list item is shown by sliding and bouncing.

Preview #

Screen Recording 2021-11-29 at 11 12 09 PM (2)Screen Recording 2021-11-30 at 11 11 26 AM

Installation #

Add animation_list: ^0.0.2 to your pubspec.yaml dependecies. And import it:

import 'package:animation_list/animation_list.dart';

How to use #

Simply add a Animation List widget with required params.

final List<Map<String, dynamic>> data = [
    {
      'title': '1111',
      'backgroundColor': Colors.grey,
    },
    {
      'title': '2222',
      'backgroundColor': Colors.red,
    },
    {
      'title': '3333',
      'backgroundColor': Colors.yellow,
    },
    {
      'title': '4444',
      'backgroundColor': Colors.blue,
    },
    {
      'title': '5555',
      'backgroundColor': Colors.green,
    },
    {
      'title': '6666',
      'backgroundColor': Colors.orange,
    },
    {
      'title': '7777',
      'backgroundColor': Colors.brown,
    },
    {
      'title': '8888',
      'backgroundColor': Colors.purple,
    },
  ];

  Widget _buildTile(String title, Color backgroundColor) {
    return Container(
        height: 100,
        margin: EdgeInsets.symmetric(horizontal: 10, vertical: 5),
        decoration: BoxDecoration(
          borderRadius: BorderRadius.all(Radius.circular(25)),
          color: backgroundColor,
        ));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: AnimationList(
            children: data.map((item) {
          return _buildTile(item['title'], item['backgroundColor']);
        }).toList()),
      ),
    );
  }

Params #

AnimationList(
    children: children,
    duration: 1000,
    reBounceDepth: 10,
)
52
likes
40
pub points
88%
popularity

Publisher

verified publisherkuku.pe.kr

A Flutter package project that is a simple animation listview widget.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on animation_list