masked_text_input_formatter 0.0.1

Flutter Android iOS web

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: '/',
    ),
  ],
);
1
likes
80
pub points
86%
popularity

Package that provides text formatting for TextField and TextFormField.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

sebdeveloper6952@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on masked_text_input_formatter