flutter_multi_formatter
2.13.11, released 6 months ago by softmaestri.com
Input formatters for international phone numbers, credit/debit cards, currencies, and custom masks.
What it does
Provides a collection of Flutter text input formatters and utility methods to automatically format phone numbers, credit/debit cards, and currency values. It also includes validation helpers for phone numbers, Bitcoin wallets, and a widget to easily unfocus text fields.
AI-written summary of version 2.13.11, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to format and validate phone numbers with country code detection.
- You need to format credit or debit card input fields with card type detection.
- You need to display and format currency values as users type.
Skip it when
- You require complex state management solutions for your forms.
- You are looking for a complete UI component library or form builder.
Strengths
- Automated detection of phone numbers and credit card systems.
- Includes helpful string extensions for currency and number formatting.
- Provides a simple Unfocuser widget to dismiss keyboards.
Weaknesses
- Card validation can return true only for supported card systems.
- Relies on a predefined list of card systems and phone codes.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
No complex native setup required. Simply import the package and add the desired formatters to your TextFormField inputFormatters list.
TextFormField(
keyboardType: TextInputType.phone,
inputFormatters: [
PhoneInputFormatter()
],
)Alternatives
Packages that do the same job and could replace flutter_multi_formatter.
- best_form_validator
Zero-initialization form field validators for Flutter with 52 countries and 25 languages.
72Compare - form_builder_phone_field
International phone number input field for the flutter_form_builder package.
70Compare - flutter_intl_phone_field
International phone number input with country picker, formatting, and validation for 250+ countries.
76Compare - fancy_credit_card_input
A highly customizable credit card input field with built-in animations and card brand detection.
74Compare
Works with
Packages commonly used together with flutter_multi_formatter: ones it builds on, ones built on it, and its own family.
- bech32flutter_multi_formatter depends on itImplementation of Bitcoin's BIP173 Bech32 encoding specification.
- nylo_supportBuilt on flutter_multi_formatterSupport library for the Nylo framework offering routing, networking, storage, widgets and more.
- intl_phone_number_fieldBuilt on flutter_multi_formatterCustomised Flutter TextFormField to input international phone numbers with country codes.