FLUTTER ECOSYSTEM

flutter_libphonenumber

Leverages libphonenumber to allow for asynchronous and synchronous formatting of phone numbers in Flutter apps.

flutter_libphonenumber cover
Latest version
2.7.0
30-day downloads
85.5K
Likes
190
Pub points
150

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

flutter_libphonenumber is a Flutter package that integrates Google's libphonenumber library to enable accurate phone number formatting, validation, and parsing across multiple platforms. It supports both synchronous and asynchronous operations, making it suitable for real-time input handling in forms or user profiles. The package ensures consistent international phone number formatting based on country-specific rules, improving user experience in global applications. It works seamlessly on Android, iOS, Web, and macOS, providing reliable results regardless of the device or region.

Use cases
  • International phone number input fields
  • Real-time phone number validation
  • Dynamic country-based formatting
  • User profile registration flows
  • Supporting multi-region applications
Key features
  • Synchronous and asynchronous processing
  • Cross-platform compatibility
  • Built-in country code detection
  • Automatic formatting based on locale
  • Robust validation with error codes
Suitable for
  • Global apps requiring phone number support
  • Form inputs with dynamic formatting
  • Apps targeting multiple countries
  • Developers needing accurate international number handling
Considerations
  • Requires internet for full metadata (if using async mode)
  • Initial setup may need country code configuration
  • Limited to libphonenumber's supported regions
  • Performance impact with frequent format calls
  • May increase app size due to native library inclusion
Supported platformsAndroidiOSWebmacOS

Install package

flutter pub add flutter_libphonenumber

Categories

Source repository

Related projects