- Increased Flutter version requirement to v3.16.9. If you are using an older Flutter version, you can still use version 0.3.3 of the package.
- Replaced
textScaleFactor
withtextScaler
so text scaling works better on some devices.
- Fixed a compatibility issue for those using older Flutter SDK (prior to 3.12.0) by reverting
the
textScaler
change made in 0.3.1.
- Fixed an issue where numbers were incorrectly reversed for RTL languages.
- Replaced
textScaleFactor
withtextScaler
so text scaling works better on some devices. - For fonts that have both tabular (monospaced) and proportional (varying width) figures, we start
requesting
tabular figures
, so that they work better with the animation on each digit.
- Added a
hideLeadingZeroes
property. Useful when number of digits is expected to grow (e.g. going from 99 to 100), you can usewholeDigits: 3
to pad a leading zero, and use this new property to hide padded zeroes. Although not visible, the padded zeroes help improve animation when new digits appear. - Added a
negativeSignDuration
property, to control the duration of the negative sign animation. Default value is 150 ms, half of the duration of the main animation, so it feels snappier. - Added a
infix
property, to display a string between the negative sign and the number. For example, settinginfix: '$'
will display-$123.45
.
- Updated Flutter SDK version requirement to ">=2.12.0 <4.0.0".
- Added a
padding
property, to set an optional padding for each digit.
- Fixed an issue where some digits were misaligned for some fonts.
- Fixed an issue when the text style is not opaque.
- Added a
mainAxisAlignment
property, to control the alignment of the digits.
- Fixed an issue with some animation curves (e.g.
Curves.elasticOut
).
- Added
thousandSeparator
property. E.g.thousandSeparator: ','
turns1000
into1,000
. - Added
decimalSeparator
property to customize the decimal point for certain locale.
- Added
wholeDigits
property. E.g.wholeDigits: 4
turns48
into0048
.
- Added animation
curve
support.
- Fixed an issue where TextStyle shadows would incorrectly appear for the negative sign.
- Initial Open Source release.