masked_text_input_formatter 0.0.1 copy "masked_text_input_formatter: ^0.0.1" to clipboard
masked_text_input_formatter: ^0.0.1 copied to clipboard

Package that provides text formatting for TextField and TextFormField.

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"

Usage Example #

Import masked_text_input_formatter.dart:

import 'masked_text_input_formatter/masked_text_input_formatter.dart

Credit Card Number #

TextField(
  inputFormatters: [
    MaskedTextInputFormatter(
      mask: 'xxxx-xxxx-xxxx-xxxx',
      separator: '-',
    ),
  ],
);

Date #

TextField(
  inputFormatters: [
    MaskedTextInputFormatter(
      mask: 'MM/YY',
      separator: '/',
    ),
  ],
);
4
likes
30
pub points
77%
popularity

Publisher

unverified uploader

Package that provides text formatting for TextField and TextFormField.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on masked_text_input_formatter