NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1424 most downloaded on pub.dev
A scroll numbers animation widget, any number that need scroll animation effects and easy to use.
Last release 4 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
One column per quarter.
> This version is basically generated by github copilot.
这个版本基本由 github copilot 生成 This version is basically generated by github copilot.
1e-7.00000000 for tiny decimals.animateUnchangedDigits (default false) to support optional unchanged-digit rolling behavior for value updates. (related to #26)reassemble to reduce temporary state loss flashes. (related to #28)* merge #24 remove debug print.
Nothing published for this version
从 3.3.0 起(包含),需要 flutter 版本 >= 3.16
增加了最小整数位支持 enableMinIntegerDigits,当数字 >= 0 <= 9 时,左边补 0,默认 false,不启用。如果为 true,且 fractionDigits 必须为 0,则启用,以满足需求 #20
增加了最小整数位支持 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.
support sdk >=3.0.0+, if your sdk version is < 3.0.0, use 3.2+ instead.
🍓 告知:这个 <3.3+ 是 sdk: <3.0.0 以下的支持版本,sdk: >= 3.0.0+ 的版本在 3.3+ 后续发布
<3.3+ 是 sdk: <3.0.0 以下的支持版本,sdk: >= 3.0.0+ 的版本在 3.3+ 后续发布upgrade: 'window' is deprecated and shouldn't be used. Look up the current FlutterView from the context via View.of(context) or consult the PlatformDi…
final window = WidgetsBinding.instance.window; // deprecated
* FIX: #10
added change color based on value. ex `dart int value = 9999; // or use Controller.value AnimatedDigitWidget( value: value, textStyle: TextStyle( colo
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.
],
),
Nothing published for this version
* 3.1.3 release * fix _setValue null error
cancel prefix and suffix middle of space.
prefix and suffix middle of space.Nothing published for this version
optimization autoSize animation
minusValuetimesValuedivideValueprefixenableDigitSplit => enableSeparatordigitSplitSymbol => separateSymbolseparatorDigits => separateLengthloop default value => true (orgin false)autoSize default value => true (orgin false)singleBuilderadded loop (default false), example: `dart AnimatedDigitWidget( value: 2022, loop: true, ), `
loop (default false), example:AnimatedDigitWidget(
value: 2022,
loop: true,
),
singleBuilder, example:AnimatedDigitWidget(
value: 2022,
loop: true,
separatorDigits: 1,
digitSplitSymbol: "#",
enableDigitSplit: true,
singleBuilder: (size, value, isNumber, defaultBuilder) {
return isNumber ? defaultBuilder() : FlutterLogo();
},
),
run result
SingleDigitProvider Widget, this is InheritedWidget.它可以控制每个数字或符号的包装盒的大小和改变显示它们的方式,它比
singleBuilder权利更大it can control the size of every digit/symbol wrapper box and change the way of display them, more powerful than
singleBuilder
example
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),
),
),
autoSize (default false).resolve https://github.com/mingsnx/animated_digit/pull/3#issuecomment-1005552717
animateAutoSize (default false)✅ Fix use MediaQueryData.textScaleFactor
formatter, example:AnimatedDigitWidget(
value: 2022,
formatter: (val) => "Hello ~ $val",
),
// => Hello ~ 2022
* added decimalSeparator * added suffix
✅ use late final scrollController resolve init null value
✅ fix scrollController null check
✅ When you don’t need a controller, you can use the value field
✅ 解决设备字体因 textScaleFactor 改变的影响
✅Fix the effect of digitSplitSymbol after negative numbers
✅Fix the effect of digitSplitSymbol after negative numbers
* 2.0.0 release * ✅Migrate to null-safety. * ✅迁移至空安全
✅Cannot scroll after calling'addValue' or'resetValue' for the second time
Prevent ScrollController not attached to any scroll views
(property modify error) <= 1.0.4 digitSplitSymbol => (1.0.5)❌digitSplitNumber => (now)✅digitSplitSymbol
* 1.0.4 release * 修复支持整数
* 1.0.3 release * 区分分隔字符和数字的Size计算
引入 number_precision 解决数字精度git add .
* 1.0.1 release. * reset bug
* 1.0.0 release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →