Flutter Gems is a curated list of 7250+ useful Dart & Flutter packages that are categorized based on functionality.
Top Flutter Autoformat, Masking and Validation packages
Last updated: May 18, 2026
Auto-formatting and input masking drastically improve UX by automatically inserting dashes, spaces, and parentheses as the user types (e.g., formatting a raw string of numbers into a readable phone number or credit card).
Best Practices for Input Masking
- Immediate Formatting: Apply the mask
onChangedso the user sees the correct format (e.g.,(555) 123-4567) in real-time. Do not wait for them to finish typing. - Raw Data Extraction: While the UI displays the formatted string, your form controller must be able to easily extract the raw, unmasked data (e.g.,
5551234567) to send to your backend API. - Copy/Paste Support: Ensure your masking package gracefully handles users pasting fully formatted strings, raw strings, or partially formatted strings into the input field without crashing or breaking the mask.
The complete list of Auto-Formatters, Input Masks, and Form Validation packages for Flutter is provided below.
auto_size_text
👍 5.09K ⬇️ 1M
Dart 3 compatibleMaintenance Status: Poor
Flutter widget that automatically resizes text to fit perfectly within its bounds.
mask_text_input_formatter
👍 1.32K ⬇️ 478.6K
Dart 3 compatibleMaintenance Status: Poor
The package provides TextInputFormatter for TextField and TextFormField which format the input by a given mask.
email_validator
👍 1.22K ⬇️ 443.6K
Dart 3 compatibleMaintenance Status: Average
A simple (but correct) dart class for validating email addresses
intl_phone_number_input
👍 924 ⬇️ 91.8K
Dart 3 compatibleMaintenance Status: Good
A simple and customizable flutter package for inputting phone number in intl / international format uses Google's libphonenumber.
flutter_multi_formatter
👍 613 ⬇️ 141.2K
Dart 3 compatibleMaintenance Status: Good
A package of formatters for international phone numbers, credit / debit cards and a masked formatter
brasil_fields
👍 577 ⬇️ 22.3K
Dart 3 compatibleMaintenance Status: Good
O jeito mais fácil de utilizar padrões e formatos brasileiros em seu projeto Dart.
form_builder_validators
👍 376 ⬇️ 128.5K
Dart 3 compatibleMaintenance Status: Good
Form Builder Validators set of validators for FlutterFormBuilder. Provides common validators and a way to make your own.
auto_size_text_field
👍 300 ⬇️ 211.9K
Dart 3 compatibleMaintenance Status: Good
Flutter TextField widget that automatically resizes text field to fit perfectly within its bounds.
currency_text_input_formatter
👍 290 ⬇️ 112.1K
Dart 3 compatibleMaintenance Status: Average
Currency Text Input Formatter for Flutter. Use it easy and simple for your flutter app.
validators
👍 244 ⬇️ 129.3K
Dart 3 compatibleMaintenance Status: Poor
String validation and sanitization for Dart.
pattern_formatter
👍 309 ⬇️ 27.7K
Dart 3 compatibleMaintenance Status: Good
A Flutter package provides some implementations of TextInputFormatter that format input with pre-defined patterns
flutter_libphonenumber
👍 190 ⬇️ 85.5K
Dart 3 compatibleMaintenance Status: Good
Leverages libphonenumber to allow for asynchronous and synchronous formatting of phone numbers in Flutter apps.
phone_form_field
👍 221 ⬇️ 33.6K
Dart 3 compatibleMaintenance Status: Good
Flutter phone input integrated with flutter internationalization
validatorless
👍 171 ⬇️ 4.8K
Dart 3 compatibleMaintenance Status: Good
This package provides a means to validate text inputs on the flutter and was inspired by Yup
easy_mask
👍 159 ⬇️ 18.2K
Dart 3 compatibleMaintenance Status: Poor
Easy and Powerful Mask for TextField, TextFormField and Strings. Has multi mask support, reverse mask for currency and placeholder. It controls user's cursor.
fzregex
👍 172 ⬇️ 1.7K
Dart 3 compatibleMaintenance Status: Good
A utility package for validating: Phone, Name, PostalCode, Email, URL, Currency, IP Address, Date, Time, HTMLTags, Password (Strong/Medium), and Credit Card. Designed for Dart/Flutter Developers.
extended_masked_text
👍 147 ⬇️ 14.8K
Dart 3 compatibleMaintenance Status: Average
A small set of custom TextEditingControllers that allows masked text inputs for flutter apps
regexpattern
👍 130 ⬇️ 1.5K
Dart 3 compatibleMaintenance Status: Poor
Flutter list of regex pattern with purpose for string validation
flutter_masked_text2
👍 97 ⬇️ 21.2K
Dart 3 compatibleMaintenance Status: Poor
Masked text input for flutter.
cpf_cnpj_validator
👍 81 ⬇️ 35.9K
Dart 3 compatibleMaintenance Status: Poor
A lib to validate, format, strip and generate CPF and CNPJ numbers from Brazil.
rules
👍 108 ⬇️ 99
Dart 3 compatibleMaintenance Status: Good
Rules is a simple yet powerful and feature-rich validation library for both dart and flutter.
all_validations_br
👍 97 ⬇️ 621
Dart 3 compatibleMaintenance Status: Average
A powerful library Dart library for advanced validations: CPF, CNPJ, URLs, passwords, string checks, and character removal. Simplify your Dart and Flutter projects.
money_formatter
👍 88 ⬇️ 3.7K
Dart 3 compatibleMaintenance Status: Good
MoneyFormatter is a Flutter extension to formatting various types of currencies according to the characteristics you like, without having to be tied to any localization.
auto_direction
👍 88 ⬇️ 214
Dart 3 compatibleMaintenance Status: Poor
This package changes the direction of a widget from ltr direction into rtl direction and vice versa based on the language of the text provided.
queen_validators
👍 80 ⬇️ 827
Dart 3 compatibleMaintenance Status: Poor
collection of validation methods and rules for flutter form with ZERO extra widgets
passwordfield
👍 61 ⬇️ 339
Dart 3 compatibleMaintenance Status: Poor
A simple and easy to use Passwordfield Widget to add a password Textfield to your Flutter project hassle free.
libphonenumber
👍 59 ⬇️ 2K
Dart 3 compatibleMaintenance Status: Poor
This is a Flutter implementation of libphonenumber. It includes only a few features at the moment, and are added when more functionality is desired.
auto_validate
👍 60 ⬇️ 290
Dart 3 compatibleMaintenance Status: Good
The Auto Validate package streamlines input validation by leveraging customizable regular expressions, allowing for efficient verification of various data formats.
currency_textfield
👍 53 ⬇️ 6.9K
Dart 3 compatibleMaintenance Status: Good
A flutter package that implements a Controller for currency text input.
regexed_validator
👍 56 ⬇️ 27
Dart 3 compatibleMaintenance Status: Poor
Validating: phone, name, postalCode, email, url, currency, ip, date, time, htmlTags, password (strong), medium-password, creditCard. for A Dart/Flutter developers
ack
👍 55 ⬇️ 454
Dart 3 compatibleMaintenance Status: Average
A simple validation library for Dart
verify
👍 55 ⬇️ 50
Dart 3 compatibleMaintenance Status: Poor
Validations made simple. An extension based state validation DSL.
phone_input
👍 45 ⬇️ 7K
Dart 3 compatibleMaintenance Status: Good
This package is designed to simplify the process of capturing phone numbers from users.
iban
👍 31 ⬇️ 23.5K
Dart 3 compatibleMaintenance Status: Average
A validation library for IBANs included in the official registry. Also supports some unofficial ones.
acanthis
👍 48 ⬇️ 2.4K
Dart 3 compatibleMaintenance Status: Good
Acanthis is an easy-to-use validation library for Dart and Flutter.
flutter_auto_size_text
👍 36 ⬇️ 13.3K
Dart 3 compatibleMaintenance Status: Good
Flutter widget that automatically resizes text to fit perfectly within its bounds.
ez_validator
👍 44 ⬇️ 846
Dart 3 compatibleMaintenance Status: Good
Dead simple field/object schema validation for flutter,EzValidator api is inspired by Yup/Zod
validation_textformfield
👍 37 ⬇️ 55
Dart 3 compatibleMaintenance Status: Poor
flutter textfield validation lets you validate different textform fields in your Flutter app.
extended_phone_number_input
👍 36 ⬇️ 134
Dart 3 compatibleMaintenance Status: Poor
Phone input Flutter widget that supports country code, validation and contact picker
mask
👍 35 ⬇️ 220
Dart 3 compatibleMaintenance Status: Poor
This project is for you to be able to make validations and formatting in a simple and easy way in your projects
number_text_input_formatter
👍 32 ⬇️ 53
Dart 3 compatibleMaintenance Status: Good
Number Text Input Formatter for Flutter
boleto_utils
👍 28 ⬇️ 3.8K
Dart 3 compatibleMaintenance Status: Good
Package com métodos para a validação de todos os tipos de boleto do Brasil definidos pela FEBRABAN
mask_input_formatter
👍 29 ⬇️ 582
Dart 3 compatibleMaintenance Status: Poor
TextInputFormatter for TextField and TextFormField which format the input by a given mask.
masked_text_field
👍 29 ⬇️ 168
Dart 3 compatibleMaintenance Status: Poor
A package for masked text field for format your text, so if you want a mask for phone number, or IP address or any kind of formate. Use this package.
validadores
👍 28 ⬇️ 409
Dart 3 compatibleMaintenance Status: Poor
Validadores para formulários PT-BR, validações como CPF,CNPJ,OBRIGATORIO,EMAIL,IGUAL,Valor Mínimo,Valor Máximo,Tamanho Mínimo,Tamanho Máximo.
formdator
👍 28 ⬇️ 134
Dart 3 compatibleMaintenance Status: Average
A collection of form field validators that can be selected and grouped into various combinations through composition — Decorator Pattern.
masked_text
👍 26 ⬇️ 350
Dart 3 compatibleMaintenance Status: Poor
A simple and basic masked text package.
is_valid
👍 25 ⬇️ 414
Dart 3 compatibleMaintenance Status: Poor
An all-in-one validator 50+ functions cover common cases, from emails and phone numbers to URLs and passwords.
validated
👍 23 ⬇️ 2.6K
Dart 3 compatibleMaintenance Status: Poor
The ultimate string validator for dart and flutter with over 40+ validators
the_validator
👍 25 ⬇️ 45
Dart 3 compatibleMaintenance Status: Poor
A simple & easy validation package for flutter that can be used to validate form fields and strings & values
flutter_laravel_form_validation
👍 24 ⬇️ 207
Dart 3 compatibleMaintenance Status: Poor
A simplified dart extension based flutter form validation . Inspired by Laravel Validation.
phonenumbers
👍 24 ⬇️ 72
Dart 3 compatibleMaintenance Status: Poor
Phone number validation and input widget written in pure dart without any native dependency
well_formed
👍 24 ⬇️ 55
Dart 3 compatibleMaintenance Status: Average
A form fields package designed to relieve developers of much of the burden of form-related coding. It provides field masking, validation, smart trimming, and more.
phone_text_field
👍 22 ⬇️ 2.3K
Dart 3 compatibleMaintenance Status: Good
A comprehensive Flutter plugin for international phone number input, validation, formatting, and country selection with localization support.
fluent_validation
👍 23 ⬇️ 118
Dart 3 compatibleMaintenance Status: Poor
A dart based port of fluent validation for C#. FluentValidation allows easy validation of objects without crazy amounts of boilerplate.
meta_validator
👍 23 ⬇️ 39
Dart 3 compatibleMaintenance Status: Poor
A tidy utility to handle validation of strings like a pro. It provides support for both iOS, Android, Web, Linux platforms (offcourse).
flux_validator_dart
👍 22 ⬇️ 205
Dart 3 compatibleMaintenance Status: Poor
A package to validate strings and input data for dart with a variety of validators such as cpf, cnpj, car plate, email, phone number and others.
localregex
👍 22 ⬇️ 85
Dart 3 compatibleMaintenance Status: Average
Collection of regex patterns commonly used in Zimbabwe. Regex patterns include mobile numbers, passports, vehicle license plates, driver's license, email addresses and passwords
inspection
👍 21 ⬇️ 226
Dart 3 compatibleMaintenance Status: Poor
validation form inputs and data in Dart & Flutter like Laravel framework
flutter_bidi_text
👍 15 ⬇️ 1.1K
Dart 3 compatibleMaintenance Status: Good
A Flutter package that provides text widgets with automatic bidirectional text direction detection for multilingual applications.
multi_masked_formatter
👍 13 ⬇️ 1.3K
Dart 3 compatibleMaintenance Status: Poor
Multple Masked TextInputFormatter Flutter plugin. It is useful for entering phone numbers, date of birth.
string_validator_plus
👍 13 ⬇️ 61
Dart 3 compatibleMaintenance Status: Poor
Simplify data validation in Flutter apps! Validate emails, passwords, and more. Intuitive interface, accurate validation. Download now!
form_model
👍 8 ⬇️ 15
Dart 3 compatibleMaintenance Status: Average
A powerful and flexible form validation package for Flutter applications.
cellphone_validator
👍 7 ⬇️ 144
Dart 3 compatibleMaintenance Status: Good
A widget and helper for validating international phone numbers
currency_widget
👍 6 ⬇️ 413
Dart 3 compatibleMaintenance Status: Good
A currency list of widgets which you can choose or get information about the currency
simple_form_validations
👍 5 ⬇️ 9
Dart 3 compatibleMaintenance Status: Poor
Simple Form Validations is a Dart package that provides a collection of validators for common data validation scenarios.
helium_validator
👍 3 ⬇️ 17
Dart 3 compatibleMaintenance Status: Good
A lightweight, powerful, and extensible validation library for Flutter.
formrules
👍 2 ⬇️ 315
Dart 3 compatibleMaintenance Status: Good
A fluent, chainable Flutter form validator with a conflict-free static API, built-in rules, full localization support, and zero third-party dependencies.
flutter_indian_utils
👍 1 ⬇️ 18
Dart 3 compatibleMaintenance Status: Good
A comprehensive utility package for Indian developers. Includes validators, formatters, and converters for PAN, Aadhaar, GSTIN, mobile numbers, currency, and more.
url_textformfield
👍 1 ⬇️ 8
Dart 3 compatibleMaintenance Status: Poor
Textformfield designed for inputing urls, with options to add leading and trailing text, appended at begining and end of input
cpfcnpj
👍 51 ⬇️ 37
Maintenance Status: Poor
An easy-to-use utility for CPF/CNPJ validation and formatting.
international_phone_input
👍 43 ⬇️ 31
Maintenance Status: Poor
International Phone Number Input For Flutter. This packages validates phone number input value using the libphonenumber package.
fitted_text_field_container
👍 27 ⬇️ 91
Maintenance Status: Poor
A Container that automatically resizes to fit a the text value of a Material TextField.
dart_rut_validator
👍 21 ⬇️ 21
Maintenance Status: Poor
A small dart library to easily format, manipulate and validate chilean RUT.
cnpj_cpf_formatter
👍 4 ⬇️ 21
Maintenance Status: Poor
This library gives you a formatter to CNPJ or CPF documents. Enjoy it!
