Flutter Gems is a curated list of 5600+ useful Dart & Flutter packages that are categorized based on functionality.

Discord Medium LinkedIn Twitter

Top Flutter Autoformat, Masking and Validation packages

Last updated: April 2, 2024

Autoformat feature when added to a text field or a form field, allows automatic formatting of the text entered by a user. This is useful for fields that require a specific format, such as phone numbers, national identification numbers, etc. It can also be used to mask sensitive fields and combined with form field validation to validate user input such as email address.

In Flutter, you can add text field autoformatting, masking and validation functionality via the below mentioned packages.


mask_text_input_formatter Card Image
mask_text_input_formatter
Dart 3 compatible 👍 1.11K
Maintenance Status: Good

The package provides TextInputFormatter for TextField and TextFormField which format the input by a given mask.

intl_phone_number_input Card Image
intl_phone_number_input
Dart 3 compatible 👍 770
Maintenance Status: Good

A simple and customizable flutter package for inputting phone number in intl / international format uses Google's libphonenumber.

brasil_fields Card Image
brasil_fields
Dart 3 compatible 👍 522
Maintenance Status: Good

The easiest way to use Brazilian standards and formats in your Dart project.

flutter_multi_formatter Card Image
flutter_multi_formatter
Dart 3 compatible 👍 499
Maintenance Status: Good

A package of formatters for international phone numbers, credit / debit cards and a masked formatter

pattern_formatter Card Image
pattern_formatter
Dart 3 compatible 👍 267
Maintenance Status: Good

A Flutter package provides some implementations of TextInputFormatter that format input with pre-defined patterns

auto_size_text_field Card Image
auto_size_text_field
Dart 3 compatible 👍 236
Maintenance Status: Good

Flutter TextField widget that automatically resizes text field to fit perfectly within its bounds.

form_builder_validators
Dart 3 compatible 👍 233
Maintenance Status: Good

Form Builder Validators set of validators for FlutterFormBuilder. Provides common validators and a way to make your own.

currency_text_input_formatter
Dart 3 compatible 👍 226
Maintenance Status: Good

Currency Text Input Formatter for Flutter. Use it easy and simple for your flutter app.

phone_form_field
Dart 3 compatible 👍 130
Maintenance Status: Good

Flutter phone input integrated with flutter internationalization

flutter_libphonenumber Card Image
flutter_libphonenumber
Dart 3 compatible 👍 128
Maintenance Status: Good

Leverages libphonenumber to allow for asynchronous and synchronous formatting of phone numbers in Flutter apps.

regexpattern
Dart 3 compatible 👍 117
Maintenance Status: Good

Flutter list of regex pattern with purpose for string validation

auto_direction Card Image
auto_direction
Dart 3 compatible 👍 82
Maintenance Status: Good

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.

money_formatter
Dart 3 compatible 👍 71
Maintenance 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.

passwordfield Card Image
passwordfield
Dart 3 compatible 👍 55
Maintenance Status: Good

A simple and easy to use Passwordfield Widget to add a password Textfield to your Flutter project hassle free.

verify
Dart 3 compatible 👍 53
Maintenance Status: Good

Validations made simple. An extension based state validation DSL.

currency_textfield Card Image
currency_textfield
Dart 3 compatible 👍 40
Maintenance Status: Good

A flutter package that implements a Controller for currency text input.

mask Card Image
mask
Dart 3 compatible 👍 32
Maintenance Status: Good

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

validadores
Dart 3 compatible 👍 24
Maintenance Status: Good

Validators for PT-BR forms, validations such as CPF, CNPJ, REQUIRED, EMAIL, EQUAL, Minimum Value, Maximum Value, Minimum Size, Maximum Size.

phonenumbers
Dart 3 compatible 👍 21
Maintenance Status: Good

Phone number validation and input widget written in pure dart without any native dependency

phone_text_field
Dart 3 compatible 👍 12
Maintenance Status: Good

Phone Number TextFiled is a Flutter plugin that allows you to parse, validate, format and other utilities for to international phone numbers and allow localization.

string_validator_plus
Dart 3 compatible 👍 11
Maintenance Status: Good

Simplify data validation in Flutter apps! Validate emails, passwords, and more. Intuitive interface, accurate validation. Download now!

simple_form_validations
Dart 3 compatible 👍 4
Maintenance Status: Good

Simple Form Validations is a Dart package that provides a collection of validators for common data validation scenarios.

email_validator
Dart 3 compatible 👍 991
Maintenance Status: Average

A simple (but correct) dart class for validating email addresses

validatorless
Dart 3 compatible 👍 146
Maintenance Status: Average

This package provides a means to validate text inputs on the flutter and was inspired by Yup

all_validations_br
Dart 3 compatible 👍 91
Maintenance Status: Average

String validations and remover char ex ('/', '-', '.'), more than a validation for your best projects.

queen_validators
Dart 3 compatible 👍 79
Maintenance Status: Average

collection of validation methods and rules for flutter form with ZERO extra widgets

validation_textformfield Card Image
validation_textformfield
Dart 3 compatible 👍 33
Maintenance Status: Average

flutter textfield validation lets you validate different textform fields in your Flutter app.

masked_text_field Card Image
masked_text_field
Dart 3 compatible 👍 26
Maintenance Status: Average

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.

masked_text
Dart 3 compatible 👍 25
Maintenance Status: Average

A simple and basic masked text package.

formdator
Dart 3 compatible 👍 25
Maintenance Status: Average

A collection of form field validators that can be selected and grouped into various combinations through composition — Decorator Pattern.

meta_validator
Dart 3 compatible 👍 23
Maintenance Status: Average

A tidy utility to handle validation of strings like a pro. It provides support for both iOS, Android, Web, Linux platforms (offcourse).

localregex
Dart 3 compatible 👍 22
Maintenance 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

well_formed Card Image
well_formed
Dart 3 compatible 👍 21
Maintenance 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.

multi_masked_formatter Card Image
multi_masked_formatter
Dart 3 compatible 👍 11
Maintenance Status: Average

Multple Masked TextInputFormatter Flutter plugin. It is useful for entering phone numbers, date of birth.

url_textformfield Card Image
url_textformfield
Dart 3 compatible 👍 1
Maintenance Status: Average

Textformfield designed for inputing urls, with options to add leading and trailing text, appended at begining and end of input

auto_size_text
Dart 3 compatible 👍 4.36K
Maintenance Status: Poor

Flutter widget that automatically resizes text to fit perfectly within its bounds.

validators
Dart 3 compatible 👍 231
Maintenance Status: Poor

String validation and sanitization for Dart.

fzregex
Dart 3 compatible 👍 165
Maintenance Status: Poor

Validating: Phone, Name, PostalCode, Email, URL, Currency, IP Address, Date, Time, HTMLTags, Password (Strong), Password (Medium), Credit Card.

easy_mask
Dart 3 compatible 👍 151
Maintenance 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.

extended_masked_text
Dart 3 compatible 👍 132
Maintenance Status: Poor

A small set of custom TextEditingControllers that allows masked text inputs for flutter apps

rules
Dart 3 compatible 👍 108
Maintenance Status: Poor

Rules is a simple yet powerful and feature-rich validation library for both dart and flutter.

flutter_masked_text2
Dart 3 compatible 👍 86
Maintenance Status: Poor

Masked text input for flutter.

cpf_cnpj_validator
Dart 3 compatible 👍 79
Maintenance Status: Poor

A lib to validate, format, strip and generate CPF and CNPJ numbers from Brazil.

libphonenumber
Dart 3 compatible 👍 53
Maintenance 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.

regexed_validator
Dart 3 compatible 👍 51
Maintenance Status: Poor

Validating: phone, name, postalCode, email, url, currency, ip, date, time, htmlTags, password (strong), medium-password, creditCard.

extended_phone_number_input
Dart 3 compatible 👍 32
Maintenance Status: Poor

Phone input Flutter widget that supports country code, validation and contact picker

mask_input_formatter
Dart 3 compatible 👍 28
Maintenance Status: Poor

TextInputFormatter for TextField and TextFormField which format the input by a given mask.

fitted_text_field_container
Dart 3 compatible 👍 27
Maintenance Status: Poor

A Container that automatically resizes to fit a the text value of a Material TextField.

iban
Dart 3 compatible 👍 26
Maintenance Status: Poor

A validation library for IBANs included in the official registry. Also supports some unofficial ones.

the_validator
Dart 3 compatible 👍 24
Maintenance Status: Poor

A simple & easy validation package for flutter that can be used to validate form fields and strings & values

validated
Dart 3 compatible 👍 22
Maintenance Status: Poor

The ultimate string validator for dart and flutter with over 40+ validators

flux_validator_dart
Dart 3 compatible 👍 22
Maintenance 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.

inspection
Dart 3 compatible 👍 21
Maintenance Status: Poor

validation form inputs and data in Dart & Flutter like Laravel framework

flutter_masked_text
👍 239
Maintenance Status: Poor

Masked text input for flutter.

cpfcnpj
👍 51
Maintenance Status: Poor

An easy-to-use utility for CPF/CNPJ validation and formatting.

international_phone_input
👍 43
Maintenance Status: Poor

International Phone Number Input For Flutter. This packages validates phone number input value using the libphonenumber package.

dart_rut_validator
👍 21
Maintenance Status: Poor

A small dart library to easily format, manipulate and validate chilean RUT.

cnpj_cpf_formatter
👍 4
Maintenance Status: Poor

This library gives you a formatter to CNPJ or CPF documents.