Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

international phone field package

a customised flutter textformfield to input international phone number along with country code.

this widget can be used to make customised text field to take phone number input for any country along with an option to choose country code from a dropdown.

screenshots

international-phone-field-packagec

zinternational-phone-field-package

international-phone-field-packagex

installing

to use this package:

add the following to your pubspec.yaml file:

dependencies:
  intl_phone_field: ^1.3.0

how to use

simply create a intlphonefield widget, and pass the required params:z

intlphonefield(
    decoration: inputdecoration(
        labeltext: 'phone number',
        border: outlineinputborder(
            borderside: borderside(),
        ),
    ),
    initialcountrycode: 'in',
    onchanged: (phone) {
        print(phone.completenumber);
    },
)

use initialcountrycode to set an initial country code.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.