number_flow_flutter 0.1.0
number_flow_flutter: ^0.1.0 copied to clipboard
Beautiful animated numbers for Flutter — digit-by-digit rolling transitions with locale-aware formatting, springs, and motion blur.
Changelog #
0.1.0 #
Initial release.
Widgets #
NumberFlow— animated, digit-by-digit rolling numbers. Only the digits that change animate; the rest stay put.NumberFlow.scrub— drive the display from aValueListenable<num>at high frequency (sliders, chart scrubbers) without a rebuild per tick.TimeFlow— animated clocks, countdowns, and stopwatches, with.durationand.dateTimefactory constructors.
Formatting #
- Locale-aware formats via
NumberFlowFormat: decimal, currency, percent, compact (1.2K), scientific (1.2×10³), and engineering notation. - Correct grouping, sign display, numbering systems, and full RTL support.
- Prefix/suffix, per-position digit constraints (
digits), and tabular figures.
Animation #
- A front-loaded easing curve by default, or an opt-in iOS-like spring
(
NumberFlowSpring) with overshoot and velocity hand-off on interrupted rolls. - Smooth horizontal reflow and animated box width as the number grows or shrinks; entering digits roll in, exiting digits fade out.
- Velocity-driven frosted motion blur and horizontal digit squish, with iOS-preset defaults.
- Continuous (odometer) mode, left-to-right stagger, and configurable wheel spacing.
- Adaptive top/bottom edge mask.
Accessibility #
- Exposes a plain-text semantics label of the formatted value.
- Honors the platform reduce-motion setting.