v1.0.2
animated_number
一个用于创建动画数字的 Flutter 包。
30喜欢 181近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个用于创建动画数字的 Flutter 包。
以下为英文项目原文快照,最新内容请访问 GitHub。
This is an custom widget developed for flutter with some awesome features that will make your users more satisfied when they look into their numbers.
| Android | iOS | Linux | macOS | Web | Windows | |
|---|---|---|---|---|---|---|
| Support | SDK 16+ | 9.0+ | Any | 10.11+ | Any | Any |
To use this plugin, add animated_number as a dependency in your pubspec.yaml file.
AnimatedNumber(
startValue: 0,
endValue: 2000,
duration: Duration(seconds: 2),
isFloatingPoint: false,
style: TextStyle(
color: Colors.orange,
fontSize: 24,
),
)
AnimatedNumber(
startValue: 0,
endValue: 5500.38273626732,
duration: Duration(seconds: 5),
isFloatingPoint: true,
decimalPoint: 4,
style: TextStyle(
color: Colors.lightBlue,
fontSize: 42,
),
)
| Properties | Type | Description |
|---|---|---|
| startValue | num | Desired start value. |
| endValue | num | Desired end value. |
| duration | Duration | Duration for the animation. |
| isFloatingPoint | bool | Flag that controls if the iteration of the animation will be integer or floating point. |
| decimalPoint | int | Desired decimal points. |
| style | TextStyle? | Text style. |
| textAlign | TextAlign? | How the text should be aligned horizontally. |
| prefixText | String? | Desired prefix text. |
| sufixText | String? | Desired sufix text. |
MIT
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗