thousands_separator_formatter 1.1.0
thousands_separator_formatter: ^1.1.0 copied to clipboard
A TextInputFormatter that inserts thousands separators into a TextField as the user types, keeping the caret next to the same character.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add thousands_separator_formatterThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
thousands_separator_formatter: ^1.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:thousands_separator_formatter/thousands_separator_formatter.dart';