New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text value spacing issue #6
Comments
It's worth adding that, using a monospaced font can be a valid workaround, see this issue. |
Oops, turns out this could be caused by a bug. I just released a fix in |
I have seen that you use this for spacing final prototypeDigit = TextPainter(
text: TextSpan(text: "8", style: style),
textDirection: TextDirection.ltr,
textScaleFactor: MediaQuery.of(context).textScaleFactor,
)..layout(); I think it would be better to use style: TextStyle(
fontFeatures: [
FontFeature.tabularFigures()
],
), https://api.flutter.dev/flutter/dart-ui/FontFeature/FontFeature.tabularFigures.html |
@h65wang what about this solution |
A request to use |
AnimatedFlipCounter(
curve: Curves.slowMiddle,
value: price,
fractionDigits: 2, // decimal precision
textStyle: const TextStyle(
letterSpacing: -4.0,
wordSpacing: 0.0,
color: simpleTextColor,
fontWeight: FontWeight.w700,
fontSize: 32.0,
),
),
The text was updated successfully, but these errors were encountered: