https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field
International phone number field for FlutterFormBuilder package
https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field
dart flutter flutter-form-builder form package phone
Last synced: 12 months ago
JSON representation
International phone number field for FlutterFormBuilder package
- Host: GitHub
- URL: https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field
- Owner: flutter-form-builder-ecosystem
- License: bsd-3-clause
- Created: 2022-07-11T14:36:16.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-27T19:31:05.000Z (about 1 year ago)
- Last Synced: 2025-06-14T05:28:09.570Z (about 1 year ago)
- Topics: dart, flutter, flutter-form-builder, form, package, phone
- Language: Dart
- Homepage: https://pub.dev/packages/form_builder_phone_field
- Size: 403 KB
- Stars: 11
- Watchers: 2
- Forks: 22
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Form Builder Phone Field
International phone number field for [flutter_form_builder](https://pub.dev/packages/flutter_form_builder) package.
[](https://pub.dev/packages/form_builder_phone_field)
[](https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/actions/workflows/base.yaml)
[](https://www.codefactor.io/repository/github/flutter-form-builder-ecosystem/form_builder_phone_field)
[](https://codecov.io/gh/flutter-form-builder-ecosystem/form_builder_phone_field/)
___
- [Features](#features)
- [Usage](#usage)
- [Basic use](#basic-use)
- [Support](#support)
- [Contribute](#contribute)
- [Questions and answers](#questions-and-answers)
- [Donations](#donations)
- [Roadmap](#roadmap)
- [Ecosystem](#ecosystem)
- [Thanks to](#thanks-to)
## Features
- Country selector
- Automatic parsing international number
- Using phone_numbers_parser package. More details [here](https://pub.dev/packages/phone_numbers_parser)
## Usage
### Basic use
```dart
FormBuilderPhoneField(
name: 'phone_number',
decoration: const InputDecoration(
labelText: 'Phone Number',
hintText: 'Hint',
),
priorityListByIsoCode: ['KE'],
validator: FormBuilderValidators.compose([
FormBuilderValidators.required(),
]),
),
```
See [pub.dev example tab](https://pub.dev/packages/form_builder_phone_field/example) or [github code](example/lib/main.dart) for more details
## Support
### Contribute
You have some ways to contribute to this packages
- Beginner: Reporting bugs or request new features
- Intermediate: Implement new features (from issues or not) and created pull requests
- Advanced: Join the [organization](#ecosystem) like a member and help coding, manage issues, dicuss new features and other things
See [contribution guide](https://github.com/flutter-form-builder-ecosystem/.github/blob/main/CONTRIBUTING.md) for more details
### Questions and answers
You can question or search answers on [Github discussion](https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/discussions) or on [StackOverflow](https://stackoverflow.com/questions/tagged/flutter-form-builder)
### Donations
Donate or become a sponsor of Flutter Form Builder Ecosystem
[](https://opencollective.com/flutter-form-builder-ecosystem)
## Roadmap
- [Add complete web support](https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/issues/11)
- [Add visual examples](https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/issues/12) (images, gifs, videos, sample application)
- [Solve open issues](https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/issues), [prioritizing bugs](https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/labels/bug)
## Ecosystem
Take a look to [our awesome ecosystem](https://github.com/flutter-form-builder-ecosystem) and all packages in there
## Thanks to
[All constributors](https://github.com/flutter-form-builder-ecosystem/form_builder_phone_field/graphs/contributors)