masked_text_field
1.0.2, released 4 years ago by an unverified publisher
A Flutter widget providing a masked text field for formatting user input.
WASM-ready
What it does
Provides a text field widget that automatically formats input according to a specified mask (such as for phone numbers, dates, or IP addresses). Allows custom escape characters and change callbacks.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to format user input like phone numbers, dates, or IP addresses using a custom mask.
- You want a simple input masking solution integrated directly into a text field widget.
Skip it when
- You require complex pin code entry workflows with individual boxes.
- You need advanced validation rules outside of basic text masking.
Strengths
- Simple and straightforward setup with customizable escape characters.
- Supports multiple input types and common formatting patterns out of the box.
Weaknesses
- Very minimal documentation and changelog details.
- Limited to basic string masking.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
MaskedTextField(
textFieldController: ipController,
inputDecoration: const InputDecoration(
hintText: '192.192.192.192',
counterText: ""
),
mask: 'xxx.xxx.xxx.xxx',
maxLength: 15,
keyboardType: TextInputType.number,
)Alternatives
Packages that do the same job and could replace masked_text_field.
- pinput
If you need a specialized and customizable pin code input field instead of general text masking.
93Compare - pin_code_fields
If you are building OTP or pin code forms with dedicated box UI elements.
93Compare