FLUTTER ECOSYSTEM

libphonenumber_plugin

Flutter package for Google libphonenumber, for Android and Web. Uses Flutter Federated Package for interoperability.

Latest version
0.3.3
30-day downloads
16.2K
Likes
15
Pub points
150

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

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
Supported platformsAndroidiOSWeb

Install package

flutter pub add libphonenumber_plugin

Categories

Dependencies

Dependency list 2 items
  • libphonenumber_platform_interface^0.4.2
  • libphonenumber_web^0.3.2

Source repository

Related projects