animated_digit
A scroll numbers animation widget, any number that need scroll animation effects and easy to use.
3.3.3
58K downloads/mo
#99 most downloaded on pub.dev
mingsnx/animated_digit
What this package is like to depend on
Last release 2 months ago
27 May 2026
Ships unpredictably
gaps range from 8 days to 2.0 years
Nearly every release is documented
notes for 30 of 30 stable releases
3 versions withdrawn
withdrawn after publishing
5 years old
33 releases · first in 2021
2 releases in the last 12 months
see the full history below
Release timeline
33 releases · Apr 2021 to May 2026Releases
latest 33-
3.3.327 May 2026Release notes
Open source →- 3.3.3 release
这个版本基本由 github copilot 生成 This version is basically generated by github copilot.
- 拉取合并 #27 修复当整数位数不足补零时个位刷新的bug;去除默认黑色字体
- 修复 #16:避免极小数值显示为科学计数法(如1e-7.00000000)的渲染异常。
- 新增 animateUnchangedDigits 参数(默认为 false),支持数值更新时对未变化数字的可选滚动效果。
- 优化热重载重建路径:在 reassemble期间缓存显示值,减少临时状态丢失导致的闪烁现象(关联 #28 )。
- merged #27 to fix the bug of refreshing the last digit when the integer digits are insufficient and padded with zeros; removed default black font color.
- fix #16: avoid scientific-notation rendering artifacts such as
1e-7.00000000for tiny decimals. - add
animateUnchangedDigits(defaultfalse) to support optional unchanged-digit rolling behavior for value updates. (related to #26) - improve hot-reload rebuild path by caching display value during
reassembleto reduce temporary state loss flashes. (related to #28)
-
3.3.225 Sep 2025 -
3.3.119 Aug 2025 withdrawnNothing published for this version
-
3.3.1+119 Aug 2025Release notes
Open source →- 从 3.3.0 起(包含),需要 flutter 版本 >= 3.16
- v3.3.0+ need flutter >= v3.16+
- 优化了颜色和增减数字位的过渡动画
- Optimized color transitions and digit increment/decrement animations.
-
3.3.1+219 Aug 2025Release notes
Open source →-
增加了最小整数位支持
enableMinIntegerDigits,当数字 >= 0 <= 9 时,左边补 0,默认 false,不启用。如果为 true,且fractionDigits必须为 0,则启用,以满足需求 #20 -
Added support for minimum integer digit with enableMinIntegerDigits: when the number is between 0 and 9 (inclusive), it left-pads with 0. Defaults to false (disabled). If set to true, fractionDigits must be 0 for this feature to be enabled, meeting specific requirements #20.
-
-
3.3.016 Aug 2025Release notes
Open source → -
3.2.416 Aug 2025Release notes
Open source →- fix #18 and merge pull.
- 🍓 告知:这个
<3.3+是sdk: <3.0.0以下的支持版本,sdk: >= 3.0.0+的版本在 3.3+ 后续发布 - 🍓 Notification: This applies to versions < 3.3+ (supporting sdk: < 3.0.0). Versions with sdk: >= 3.0.0+ will be included in subsequent releases starting from 3.3+.
-
3.2.324 Aug 2023Release notes
Open source →- upgrade: 'window' is deprecated and shouldn't be used. Look up the current FlutterView from the context via View.of(context) or consult the PlatformDispatcher directly instead. Deprecated to prepare for the upcoming multi-window support. This feature was deprecated after v3.7.0-32.0.pre.
final window = WidgetsBinding.instance.window; // deprecated -
3.2.224 Aug 2023 -
3.2.104 Jun 2022Release notes
Open source →- adapted Flutter 2 ~ 3
- added change color based on value. ex
int value = 9999; // or use Controller.value AnimatedDigitWidget( value: value, textStyle: TextStyle( color: Colors.orange[200], fontSize: 30, ), valueColors: [ ValueColor( //When value <= 0 , the color changes to red condition: () => value <= 0, color: Colors.red, ), // you can add more ...,but always take the last eligible. ], ), -
3.2.028 May 2022 withdrawnNothing published for this version
-
3.1.317 Feb 2022 -
3.1.222 Jan 2022Release notes
Open source →- 3.1.2 release
- cancel
prefixandsuffixmiddle of space. - added negative symbol animation.
-
3.1.122 Jan 2022 withdrawnNothing published for this version
-
3.1.019 Jan 2022Release notes
Open source →- 3.1.0 release
- 优化自动伸缩尺寸的动画
- optimization autoSize animation
- added Controller API
minusValue - added Controller API
timesValue - added Controller API
divideValue - added
prefix - widget params name change | 参数名称变更
enableDigitSplit=>enableSeparatordigitSplitSymbol=>separateSymbolseparatorDigits=>separateLength
- change
loopdefault value =>true(orginfalse) - change
autoSizedefault value =>true(orginfalse) - remove
singleBuilder
-
3.0.010 Jan 2022Release notes
Open source →- 3.0.0 release
- added
loop(defaultfalse), example:
AnimatedDigitWidget( value: 2022, loop: true, ),- added
singleBuilder, example:
AnimatedDigitWidget( value: 2022, loop: true, separatorDigits: 1, digitSplitSymbol: "#", enableDigitSplit: true, singleBuilder: (size, value, isNumber, defaultBuilder) { return isNumber ? defaultBuilder() : FlutterLogo(); }, ),run result
- added
SingleDigitProviderWidget, this isInheritedWidget.
它可以控制每个数字或符号的包装盒的大小和改变显示它们的方式,它比
singleBuilder权利更大it can control the size of every digit/symbol wrapper box and change the way of display them, more powerful than
singleBuilderexample
SingleDigitProvider( data: SingleDigitData( syncContainerValueSize: false, size: Size.fromRadius(15), builder: (size, value, isNumber, defaultBuilder) { return isNumber ? defaultBuilder() : FlutterLogo(size: 20); }, ), child: AnimatedDigitWidget( controller: _controller, textStyle: TextStyle(color: Colors.pink[200], fontSize: 30), separatorDigits: 1, digitSplitSymbol: "#", enableDigitSplit: true, loop: true, duration: const Duration(seconds: 1), ), ),- added
autoSize(defaultfalse).
resolve https://github.com/mingsnx/animated_digit/pull/3#issuecomment-1005552717
- added
animateAutoSize(defaultfalse)
-
2.2.028 Dec 2021Release notes
Open source →- 2.2.0 release
- ✅ null-safety Version!.
- ✅ Fix use MediaQueryData.textScaleFactor
- 🍇 added
formatter, example:
AnimatedDigitWidget( value: 2022, formatter: (val) => "Hello ~ $val", ), // => Hello ~ 2022- 🍓 cancel assert separatorDigits >= 2, change to separatorDigits >= 1
-
2.1.113 Dec 2021 -
2.1.010 Dec 2021Release notes
Open source →- 2.1.0 release
- ✅ null-safety Version!.
- ✅ use late final scrollController resolve init null value
-
2.0.806 Dec 2021Release notes
Open source →- 2.0.8 release
- ✅ null-safety Version!.
- ✅ fix scrollController null check
- ✅ 修复 scrollController 空检查
-
2.0.609 Oct 2021Release notes
Open source →- 2.0.6 release
- ✅ null-safety Version!.
- ✅ When you don’t need a controller, you can use the value field
- ✅ 当不需要控制器时,可以使用 value 字段
-
2.0.431 Aug 2021Release notes
Open source →- 2.0.4 release
- ✅ null-safety Version!.
- ✅ resolve textScaleFactor
- ✅ 解决设备字体因 textScaleFactor 改变的影响
-
- duration field
-
2.0.230 May 2021Release notes
Open source →- 2.0.2 release
- ✅null-safety Version!.
- ✅Fix the effect of digitSplitSymbol after negative numbers
- ✅修复负数后digitSplitSymbol的影响
-
2.0.130 May 2021Release notes
Open source →- 2.0.1 release
- ✅not null-safety Version!.
- ✅Fix the effect of digitSplitSymbol after negative numbers
- ✅修复负数后digitSplitSymbol的影响
-
2.0.028 Apr 2021 -
1.0.627 Apr 2021Release notes
Open source →- 1.0.6 release
- ✅Cannot scroll after calling'addValue' or'resetValue' for the second time
- ✅第二次调用“ addValue”或“ resetValue”后无法滚动
-
1.0.524 Apr 2021Release notes
Open source →- 1.0.5 release
- Add assert、annotation
- Part param default handler
- Prevent ScrollController not attached to any scroll views
-
1.0.5+125 Apr 2021Release notes
Open source →- 1.0.5+1 release
- (property modify error) <= 1.0.4 digitSplitSymbol => (1.0.5)❌digitSplitNumber => (now)✅digitSplitSymbol
-
1.0.423 Apr 2021 -
1.0.323 Apr 2021 -
1.0.222 Apr 2021Release notes
Open source →- 1.0.2 release.
- solve digital precision
- 引入 number_precision 解决数字精度git add .
-
1.0.122 Apr 2021 -
1.0.022 Apr 2021