flutter_intl_phone_field
1.0.0, released 7 weeks ago by mohesu.com
International phone number input with country picker, formatting, and validation for 250+ countries.
What it does
Provides a customized TextFormField for international phone number input. Features an integrated searchable country picker, as-you-type formatting, and libphonenumber-accurate validation.
AI-written summary of version 1.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need users to input phone numbers with country codes
- You require libphonenumber-accurate phone validation and formatting
Skip it when
- Your app does not use package:material_ui
- You only need standard local phone inputs without country codes
Strengths
- Accurate validation and formatting generated from Google's libphonenumber metadata
- Supports over 251 territories with smart resolution for shared calling codes
- Includes multiple picker presentation styles and flexible customization options
Weaknesses
- Requires package:material_ui instead of standard package:flutter/material.dart
- Strict validation may reject newer or unallocated phone ranges
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires adding package:material_ui and importing the package alongside material_ui.
IntlPhoneField(
decoration: const InputDecoration(
labelText: 'Phone number',
border: OutlineInputBorder(),
),
initialCountryCode: 'IN',
onChanged: (phone) => print(phone.completeNumber),
)Alternatives
Packages that do the same job and could replace flutter_intl_phone_field.
- phone_form_field
Flutter phone input FormField with internationalization, validation, and country selector.
87Compare - form_builder_phone_field
International phone number input field for the flutter_form_builder package.
70Compare - flutter_country_selector
A country picker widget to select a country, now re-exported from phone_form_field.
75Compare - intl_mobile_field
Customized Flutter TextFormField to input international mobile numbers with country codes.
73Compare
Works with
Packages commonly used together with flutter_intl_phone_field: ones it builds on, ones built on it, and its own family.