Search packages, repositories and app categories

Package detailsv1.1.2

masked_text

A simple and basic masked text package.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
562
Likes
26
Pub points
130

Install package

flutter pub add masked_text

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A lightweight Flutter package for applying masks to text inputs, enabling formatted user input such as phone numbers, dates, and currency. It supports real-time formatting as users type, ensuring consistent data entry across platforms. The package is designed for simplicity and ease of integration, making it ideal for forms requiring structured input. It works seamlessly on Android, iOS, Web, macOS, Windows, and Linux.

Use cases

  • Form inputs with fixed formats
  • Phone number entry
  • Date and time formatting
  • Currency input validation
  • Credit card number masking
  • Dynamic mask application

Key features

  • Real-time input masking
  • Cross-platform compatibility
  • Simple API integration
  • Customizable mask patterns
  • Supports backspace and cursor positioning
  • Lightweight and minimal dependencies

Suitable for

  • Developers building form-heavy apps
  • Apps requiring structured user input
  • Projects needing quick input formatting
  • Teams prioritizing simplicity and performance
  • Mobile and web applications with input constraints

Considerations

  • Limited advanced validation beyond masking
  • No built-in internationalization support
  • May require custom handling for complex dynamic masks
  • Not suitable for highly customized input logic
  • Depends on external maintenance of the GitHub repository

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

masked_text

A package for masked texts, so if you want a mask for phone, or zip code or any kind of mask, just use it :D

Getting Started

It's very simple, it's a Widget as all the other ones.

MaskedTextField
(
    maskedTextFieldController: _textCPFController,
    mask: "###.###.###-###",
    maxLength: 14,
    keyboardType: TextInputType.number,
    inputDecoration: new InputDecoration(
    hintText: "Write you Document here", labelText: "CPF"),
);

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.