number_animation 0.1.2 copy "number_animation: ^0.1.2" to clipboard
number_animation: ^0.1.2 copied to clipboard

A simple and easy to use widget to help you show numbers by animation.

Language: English | 中文简体

number_animation #

A simple and easy to use widget to help you show numbers by animation.

Add dependency #

dependencies:
  number_animation: ^0.1.2

Super simple to use #

import 'package:flutter/material.dart';
import 'package:number_animation/number_animation.dart';


...
@override
Widget build(BuildContext context) {
    return NumberAnimation(end: 100);
}

Fields API #

param description type default value
start start number num 0.0
end end nunber String null
isInt true for int, false for double String false
duration animation duration String const Duration(milliseconds: 1000)
style TextStyle String null
textAlign TextAlign String null
strutStyle StrutStyle String null
before number prefix String ''
after number suffix String ''
decimalPoint decimal point, enable when 'isInt = false' int 2
isLoading is on loading String false
loadingPlaceHolder loading placeholder, enable when 'isLoading = true' String ''

Full example code #

Exmaple

Preview:

Example Demo

9
likes
40
pub points
32%
popularity

Publisher

unverified uploader

A simple and easy to use widget to help you show numbers by animation.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on number_animation