If you want to render fixed width (monospaced) digits, set FontFeature.tabularFigures() inside your TextStyle. https://codewithandrea.com/tips/text-style-tabular-figures/
Chcete-li přidat komentář, přihlaste se
Ostatní příspěvky v této skupině

Dart 3.8 introduced an updated formatter with various configuration options. Learn what’s new and how to prepare your codebase. https://codewithandrea.com/articles/updated-formatter-dart-3-8/

Dart 3.8 introduces a new formatting option to preserve trailing commas, overriding the new formatting style introduced in Dart 3.7. https://codewithandrea.com/tips/preserve-trailing-commas-dart-3.8/

Also included: How Flutter works (video series), the definitive guide to Navigator 2.0, and the latest from Code with Andrea. https://codewithandrea.com/newsletter/may-2025/

To enable this, switch to Flutter 3.32 and run your app with --web-experimental-hot-reload https://codewithandrea.com/tips/hot-reload-flutter-web/

Null-aware elements allow you to add nullable elements to a collection with a single character (?). https://codewithandrea.com/tips/null-aware-elements-dart-3.8/

If your app uses GoRouter with shell routes, tracking screen views reliably requires some workarounds. Here's how to make it work. https://codewithandrea.com/tips/go-router-delegate-listener/

Material 3 supports 5 types of buttons: elevated, filled, filled tonal, outlined, and text. Here's how to use them in Flutter. https://codewithandrea.com/tips/button-styles-material3/