FLUTTER ECOSYSTEM

mask

This project is for you to be able to make validations and formatting in a simple and easy way in your projects

mask cover
Latest version
1.0.5
30-day downloads
294
Likes
35
Pub points
160

Package Overview

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

Overview

The mask package provides a simple and efficient way to apply formatting and validation to user input in Flutter applications. It supports autoformatting for text fields, such as phone numbers, CPF/CNPJ, dates, and custom patterns, ensuring data consistency. With minimal setup, developers can enhance form inputs with real-time masking and validation logic across multiple platforms. The package is ideal for forms requiring structured input, improving both usability and data integrity.

Use cases
  • Form input formatting
  • Phone number masking
  • CPF/CNPJ validation
  • Date and time formatting
  • Custom pattern application
  • Real-time input validation
Key features
  • Easy integration with TextFormField
  • Supports multiple predefined masks
  • Custom mask creation
  • Cross-platform compatibility
  • Real-time input processing
  • Lightweight and performant
Suitable for
  • Flutter apps with form inputs
  • Applications requiring data validation
  • Developers seeking simple masking solutions
  • Projects targeting Android, iOS, Web, macOS, Windows, and Linux
  • Apps needing consistent user input formatting
Considerations
  • Requires manual configuration for complex patterns
  • Limited built-in masks beyond common formats
  • May need additional validation logic for edge cases
  • Not designed for non-text input types
  • Depends on correct usage of TextController and onChanged
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add mask

Categories

Source repository

Related projects