intl_phone_field
3.2.0, released 3 years ago by vanshgoel.me
A customised Flutter TextFormField for inputting international phone numbers with country codes.
What it does
Provides a customized Flutter TextFormField widget that allows users to input international phone numbers along with their country codes via a dropdown selector. It supports features like initial country configuration, search within the country picker, and validation.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a form input specifically designed for international phone numbers.
- You want a built-in country code dropdown picker attached to a text field.
Skip it when
- You only need standard text inputs without phone number validation or country codes.
Strengths
- Includes country code selection via a dropdown or picker dialog.
- Supports country search by name or dial code.
- Provides built-in validation options and custom styling properties.
Weaknesses
- Relies entirely on the package's bundled country data which may require updates for changes in phone number lengths or country rules.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
IntlPhoneField(
decoration: InputDecoration(
labelText: 'Phone Number',
border: OutlineInputBorder(
borderSide: BorderSide(),
),
),
initialCountryCode: 'IN',
onChanged: (phone) {
print(phone.completeNumber);
},
)Alternatives
Packages that do the same job and could replace intl_phone_field.
- intl_mobile_field
Customized Flutter TextFormField to input international mobile numbers with country codes.
73Compare - intl_phone_number_field
Customised Flutter TextFormField to input international phone numbers with country codes.
45Compare - phone_form_field
Flutter phone input FormField with internationalization, validation, and country selector.
87Compare - flutter_intl_phone_field
International phone number input with country picker, formatting, and validation for 250+ countries.
76Compare