counting_animation 0.0.1
counting_animation: ^0.0.1 copied to clipboard

A Simple Counting Animation For Flutter

Hello Developers!

This is a very simple and useful counting animation for flutter devs!

How to use this package:

  1. First goto your pubspec.yaml file and add dependency:

  2. run flutter pub get to update the packages dependencies.

  3. In your code, you can use it like this: first import the package:

 import 'package:counting_animation/counting_animation.dart';

then use it like this in your code:

class MyHomePage extends StatelessWidget {
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Simple Counting Animation'),
      body: Center(
        child: Column(
          children: <Widget>[
              padding: const EdgeInsets.all(8.0),
              child: Text(
                'A simple counting animation',
                style: TextStyle(
                  fontSize: 24.0,
                  fontWeight: FontWeight.bold,
              beginValue: 0.0,
              endValue: 50.35,
              smallValueStyle: TextStyle(color:, fontSize: 24.0),
              largeValueStyle: TextStyle(color:, fontSize: 18.0),
              prefix: '%',
              suffix: '%',

This will count the value from 0.0 to 50.35 with animation, By default the animation curve is set to Curves.linear and duration is set to 250 milliseconds, you can change it according to your needs by adding these properties:

curve: Curves.decelerate,
duration: Duration(seconds: 500),