country_phone_input 0.0.1 country_phone_input: ^0.0.1 copied to clipboard
A new Flutter package project.
Country Phone Input #
A simple and customizable country phone number input flutter package
Getting Started #
Avaliable Parameters #
Parameter | Datatype | Initial Value |
---|---|---|
enableSearch | bool | true |
hintText | String | '' |
focusNode | FocusNode | null |
onInputChanged | Function | null |
textFieldController | TextEditingController | TextEditingController() |
initialCountryIsoCode | String | '' |
initialPhoneNumberE164 | String | '' |
Example #
PhoneInput(
enableSearch: false,
hintText: 'Phone Number',
onInputChanged: (PhoneNumber phoneNumber) {
// get formatted phone number
print(phoneNumber.toString());
},
),