Skip to content
pubscout

smooth_counter

1.1.0, released 12 months ago by kyoheig3.jp

A Flutter widget for smooth counting up or down with animation and formatting options.

WASM-ready
$ flutter pub add smooth_counter
Source repository

What it does

Provides a SmoothCounter widget and controller to smoothly animate number changes (integers or doubles) using custom durations, curves, and number formatting. It supports prefix and suffix texts as well as initial animation settings.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to animate numeric values changing over time like a counter or financial amount.
  • You want custom number formatting using patterns or the intl package.

Skip it when

  • You just need a static text display without any count-up or count-down animation.
  • Your project uses an older version of Flutter or Dart below the required thresholds.

Strengths

  • Supports both int and double values
  • Easy to customize with number formats, prefixes, and suffixes
  • Provides a controller option for advanced animation control like curve and duration

Weaknesses

  • Requires Dart 3.8.0+ and Flutter 3.32.0+, which are quite recent requirements
  • Limited to single-purpose counting functionality

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
SmoothCounter(
  count: _counter,
  formatString: '#,##0.00',
  textStyle: Theme.of(context).textTheme.headlineMedium,
)

Alternatives

Packages that do the same job and could replace smooth_counter.

Works with

Packages commonly used together with smooth_counter: ones it builds on, ones built on it, and its own family.