Last updated:
0 purchases
separated number input formatter
separated_number_input_formatter #
A TextInputFormatter that allows the insertion of digits separated by specified separator.
It's very convenient for credit card inputting, price inputting and so on.
CreditCard
Price
Usage #
// Import package
import 'package:separated_number_input_formatter/separated_number_input_formatter.dart';
class Example extends StatelessWidget {
@override
Widget build(BuildContext context) {
return TextField(
inputFormatters: [
// Use with digits and separator parameters.
SeparatedNumberInputFormatter(4, separator: '-'),
],
);
}
}
copied to clipboard
If you want to know more this formatter, let's try my example project.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.