Country Phone Input

A simple and customizable country phone number input flutter package

Getting Started

Avaliable Parameters

ParameterDatatypeInitial Value
enableSearchbooltrue
hintTextString''
focusNodeFocusNodenull
onInputChangedFunctionnull
textFieldControllerTextEditingControllerTextEditingController()
initialCountryIsoCodeString''
initialPhoneNumberE164String''

Example

PhoneInput(
    enableSearch: false,
    hintText: 'Phone Number',
    onInputChanged: (PhoneNumber phoneNumber) {
        // get formatted phone number
        print(phoneNumber.toString());
    },
),

Dependencies

Libraries

country
country_phone_input
phone_input
phone_number