Search packages, repositories and app categories

flutter_libphonenumber cover
Package detailsv2.8.4

flutter_libphonenumber

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

AndroidiOSWebmacOS
30-day downloads
107K
Likes
192
Pub points
140

Install package

flutter pub add flutter_libphonenumber

Package Overview

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

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_libphonenumber

This is the monorepo containing all of the related packages for flutter_libphonenumber.

Getting started

$ flutter pub get

Updating packags

  • Update packages individually and publish them each to pub. Make sure changelogs and pubspec.yaml files reflect latest version / changes.
  • Update flutter_libphonenumber to point to the updated package versions.

Categories

Dependencies

Dependency list 4 items

  • flutter_libphonenumber_android^2.1.0
  • flutter_libphonenumber_darwin^2.2.0
  • flutter_libphonenumber_platform_interface^2.1.0
  • flutter_libphonenumber_web^1.3.0

Source repository

Projects using this package