Skip to content
pubscout

easy_mask

2.0.1, released 5 years ago by an unverified publisher

Apply input masks to TextFields, TextFormFields, and Strings easily.

WASM-ready
$ flutter pub add easy_mask
Source repository

What it does

Provides input formatters for text fields and utility methods to format raw strings using customizable masks. Supports multi-mask patterns, placeholders, and cursor management.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to format user input in TextFields such as phone numbers, currencies, or documents.
  • You want to format arbitrary strings using custom mask patterns.

Skip it when

  • You need complex form state validation beyond simple text masking.

Strengths

  • Supports multi-masking based on input length
  • Handles cursor position control during typing
  • Supports reverse masks for currency formatting

Weaknesses

  • Limited to text formatting and masking utilities

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
TextField(
  inputFormatters: [ TextInputMask(mask: '99? (99) 999 99-99') ],
)

Alternatives

Packages that do the same job and could replace easy_mask.