Overview
A Flutter plugin that integrates Google's libphonenumber library for Android and Web, enabling robust phone number parsing, validation, and formatting. It leverages Flutter's Federated Plugin architecture to ensure seamless interoperability across platforms. Designed for developers needing accurate international phone number handling in their apps, it supports a wide range of country-specific formats and provides consistent behavior across environments.
Use cases
- Validating user-provided phone numbers
- Formatting phone numbers for display
- Parsing international phone numbers
- Supporting multi-country applications
- Automatically detecting country from input
- Enhancing user input experience with real-time validation
Key features
- Cross-platform support (Android, iOS, Web)
- Uses native libphonenumber library
- Real-time validation and formatting
- Country code detection
- Federated plugin architecture
- Lightweight and efficient
Suitable for
- International apps requiring phone number handling
- User registration flows with phone inputs
- Apps targeting multiple regions
- Developers using Flutter with native interop needs
- Teams prioritizing accuracy in phone number processing
Considerations
- Requires internet for full metadata updates
- Limited iOS support due to platform constraints
- May increase app size slightly
- Best used with proper error handling
- Not suitable for offline-only scenarios
- Depends on upstream libphonenumber updates