international_phone_input library
A Flutter package for international phone number input with country selection.
Features:
- 240+ countries with dial codes
- Automatic phone number validation
- Country picker with search
- Customizable styling
- Form integration support
Example:
InternationalPhoneInput(
controller: phoneController,
onChanged: (country, phoneNumber) {
print('Country: ${country.name}');
print('Phone: +${country.dialCode}$phoneNumber');
},
)
Classes
- Country
- Represents a country with phone number validation rules.
- InternationalPhoneInput
- A customizable international phone number input field with country selector.