Last updated:
0 purchases
pattern formatter
PatternFormatter #
A Flutter package provides some implementations of TextInputFormatter that format input with pre-defined patterns
How to use #
import 'package:pattern_formatter/pattern_formatter.dart';
copied to clipboard
Thousands grouping #
Integer number:
TextField(
keyboardType: TextInputType.number,
inputFormatters: [
ThousandsFormatter()
],
)
copied to clipboard
Decimal number:
TextField(
keyboardType: TextInputType.number,
inputFormatters: [
ThousandsFormatter(allowFraction: true)
],
)
copied to clipboard
Card number grouping #
TextField(
keyboardType: TextInputType.number,
inputFormatters: [
CreditCardFormatter(),
],
)
copied to clipboard
Date format #
TextField(
keyboardType: TextInputType.number,
inputFormatters: [
DateInputFormatter(),
],
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.