country_phone_input 0.0.1

Flutter Android iOS

A new Flutter package project.

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 #