Search packages, repositories and app categories

animated_flip_counter cover
Package detailsv0.3.4

animated_flip_counter

An implicit animation widget that flips from one number to another, with support for customize styles, decimals and negative values.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
72.1K
Likes
653
Pub points
150

Install package

flutter pub add animated_flip_counter

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter widget that creates a smooth, animated flip effect when transitioning between numbers. It supports customizable styles, decimal places, and negative values, making it ideal for dynamic counters in apps. The animation is implicit, meaning it automatically handles the transition without requiring explicit animation controllers. Perfect for score displays, timers, or any UI element needing a visually engaging number change.

Use cases

  • Score tracking in games
  • Timer displays
  • Dynamic data visualization
  • Progress indicators
  • Countdowns
  • Financial dashboards

Key features

  • Smooth flip animation
  • Customizable text style
  • Support for decimals
  • Handles negative numbers
  • Implicit animation control
  • Cross-platform compatibility

Suitable for

  • Game developers
  • Dashboard creators
  • UI/UX designers
  • Real-time data apps
  • Interactive widgets

Considerations

  • May impact performance with many instances
  • Limited to numeric values only
  • Requires careful styling for readability
  • Not suitable for high-frequency updates
  • Best used with moderate animation duration

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

animated_flip_counter

An implicit animation widget that flips from one number to another.

Usage

It can be useful to display information that's constantly changing.

Animated Counter

Simply pass in a value and an optional duration and curve, just like any other implicit animation widget in Flutter.

AnimatedFlipCounter(
  duration: Duration(milliseconds: 500),
  value: _value, // pass in a value like 2014
)
Decimal Display

Use fractionDigits to specify how many digits to show after the decimal point. It handles negative values as well.

AnimatedFlipCounter(
  value: _value,
  fractionDigits: 2, // decimal precision
  suffix: "%",
  textStyle: TextStyle(
      fontSize: 40,
      color: _value >= 0 ? Colors.green : Colors.red,
  ),
)
Custom Style

Use the familiar TextStyle parameter for styling, and use prefix and suffix for additional texts.

AnimatedFlipCounter(
  value: _value,
  prefix: "Level ",
  textStyle: TextStyle(
    fontSize: 80,
    fontWeight: FontWeight.bold,
    letterSpacing: -8.0,
    color: Colors.yellow,
    shadows: [
      BoxShadow(
        color: Colors.orange,
        offset: Offset(8, 8),
        blurRadius: 8,
      ),
    ],
  ),
)

Categories

Source repository

Projects using this package