Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/casperlaitw/country_phone_input

A simple and customizable country phone number input flutter package
https://github.com/casperlaitw/country_phone_input

Last synced: 5 days ago
JSON representation

A simple and customizable country phone number input flutter package

Awesome Lists containing this project

README

        

# 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

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

## Dependencies
* [libphonenumber](https://pub.dev/packages/libphonenumber)