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

A very simple (50 lines of code, see Git rep) flutter package for animating a counter that decrements or increments an integer.

counter_animation #

A very simple (50 lines of code, see Git rep) flutter package for animating a counter that decrements or increments an integer.

The package can be tweaked with duration.

Usage #

To use this plugin, add counter_animation as dependency to pubspec.yaml file.

Example #

The code below shows an integer that counts up to 50, while easing out.

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

CounterAnimation(
    begin: 0,
    end: 50,
    duration: 5,
    curve: Curves.easeOut,
    textStyle: textStyle
),

Example gif

5
likes
30
pub points
11%
popularity

Publisher

unverified uploader

A very simple (50 lines of code, see Git rep) flutter package for animating a counter that decrements or increments an integer.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on counter_animation