easy_mask
2.0.1, released 5 years ago by an unverified publisher
Apply input masks to TextFields, TextFormFields, and Strings easily.
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.
- google_maps_places_autocomplete_widgets
TextField and TextFormField widgets providing address autocompletion using the Google Maps Places API.
67Compare - mask_text_input_formatter
TextInputFormatter for TextField and TextFormField to format input using a given mask.
50Compare - mask_input_formatter
A TextInputFormatter that applies a custom mask to TextField/TextFormField input.
48Compare - validators
String validation and sanitization library for Dart
50Compare