Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/casperlaitw/country_phone_input
- Owner: CasperLaiTW
- License: mit
- Created: 2019-12-03T05:52:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T06:56:02.000Z (about 5 years ago)
- Last Synced: 2023-08-20T21:37:48.816Z (over 1 year ago)
- Language: Dart
- Size: 284 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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)