Last updated:
0 purchases
masked text input formatter
masked_text_input_formatter #
Really simple text formatting to use as InputFormatters in TextField and TextFormField.
Getting Started #
In your flutter project, add the dependency:
dependencies:
masked_text_input_formatter: "0.0.1"
copied to clipboard
Usage Example #
Import masked_text_input_formatter.dart:
import 'masked_text_input_formatter/masked_text_input_formatter.dart
copied to clipboard
Credit Card Number #
TextField(
inputFormatters: [
MaskedTextInputFormatter(
mask: 'xxxx-xxxx-xxxx-xxxx',
separator: '-',
),
],
);
copied to clipboard
Date #
TextField(
inputFormatters: [
MaskedTextInputFormatter(
mask: 'MM/YY',
separator: '/',
),
],
);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.