odometer 3.0.0 copy "odometer: ^3.0.0" to clipboard
odometer: ^3.0.0 copied to clipboard

Highly customizable widgets that you can use for the number transition and the counter animations.

Build Status pub stars style: lint

Odometer #

The package which was inspired by the package Odometer js.

Examples of counter animation customization are made using this package:

Examples Gif

In this package you will find pre-built widgets:

  • AnimatedSlideOdometerNumber
  • SlideOdometerTransition

and high modifiable widgets:

  • AnimatedOdometer
  • OdometerTransition

AnimatedSlideOdometerNumber #

The ImplicitlyAnimatedWidget uses the AnimatedOdometer with the sliding and fading digits transitions.

   AnimatedSlideOdometerNumber(
     numberTextStyle: TextStyle(fontSize: 15),
     odometerNumber: OdometerNumber(_counter),
     duration: Duration(seconds: 1))
copied to clipboard

SlideOdometerTransition #

The ExplicitlyAnimatedWidget uses the OdometerTransition with the sliding and fading digits transitions.

    SlideOdometerTransition(
      numberTextStyle: TextStyle(fontSize: 15),
      odometerAnimation: _odometerAnimation,
      duration: Duration(seconds: 1))
copied to clipboard

Base widgets AnimatedOdometer and OdometerTransition #

The AnimatedOdometer is based on implicit animation, and the OdometerTransition is based on explicit animation. To customize the odometer, you need to use two OdometerAnimationTransitionBuilders for new and old numbers. You will have access to:

  • The digit
  • The digit place
  • The animation progress of this digit
98
likes
160
points
2.95k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.10 - 2025.03.25

Highly customizable widgets that you can use for the number transition and the counter animations.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on odometer