PackageTrack
Sign in Get early access

flutter_libphonenumber

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

2.8.4 88K downloads/mo #1180 most downloaded on pub.dev acoutts/flutter_libphonenumber

What this package is like to depend on

Last release 1 months ago

19 Jul 2026

Release timing varies

gaps range from 3 weeks to 10 months

Nearly every release is documented

notes for 51 of 54 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

57 releases · first in 2020

6 releases in the last 12 months

see the full history below

Release timeline

57 releases · Jun 2020 to Jul 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 57
  1. 2.8.4 19 Jul 2026
    Release notes
    • Bump flutter_libphonenumber_android to 2.1.1: fixes the Android build failure Could not find method kotlin() on AGP 9 with android.builtInKotlin=false (the state Flutter 3.44's migrator writes into apps) (#101, #102 — thanks @proninyaroslav). If your build broke on AGP 9, run flutter pub upgrade to pick up the fix.
    • Example app: buildable on pre-3.44 Flutter again (explicitly applies the Kotlin Gradle Plugin).
    Open source →
  2. 2.8.3 12 Jun 2026
    Release notes
    • Bump flutter_libphonenumber_android to 2.1.0: ready for Flutter's Built-in Kotlin cutover — the Kotlin Gradle Plugin is now applied only on AGP <9 hosts where Flutter doesn't manage Kotlin itself. Flutter <3.44 remains supported. Flutter 3.44's KGP warning may still name the plugin; this is a false positive of Flutter's text-based detection.
    • Example app: migrate off the Kotlin Gradle Plugin per the Flutter 3.44 Built-in Kotlin guide (building the example now requires Flutter 3.44+)
    Open source →
  3. 2.8.2 12 Jun 2026

    Nothing published for this version

  4. 2.8.1 11 Jun 2026
    Release notes
    • Bump flutter_libphonenumber_android to 2.0.1: reduces repeated work in getAllSupportedRegions (#100 @higorlapacw)
    • Fix example app Android build on current Android Gradle Plugin: remove the legacy manifest package attribute and fully-qualify the MainActivity name
    • Example app: bump Java compatibility to 17 to match the plugins, add an integration test covering getAllSupportedRegions
    Open source →
  5. 2.8.0 11 Jun 2026
    Release notes
    • Bump flutter_libphonenumber_darwin to 2.2.0: adds Swift Package Manager support while retaining CocoaPods compatibility (#98). Building with Swift Package Manager enabled requires Flutter 3.41+, and the iOS deployment target is now 13.0.
    Open source →
  6. 2.7.0 06 Dec 2025
    Release notes

    Big cleanup + switch to dart workspace

    Open source →
    Release notes
    • Migrate example app to declarative gradle plugins
    • Bump flutter_libphonenumber_darwin to 2.1.0
    • BREAKING: Removed flutter_libphonenumber_ios since it's now part of flutter_libphonenumber_darwin
    • Remove melos in favor of dart workspace
    • Updated flutter_libphonenumber/example android to latest gradle configs
    Open source →
  7. 2.5.1 13 Feb 2025
    Release notes
    • Bump flutter_libphonenumber_android to 1.4.1: This fixes unresolved Registrar issue occurring after upgrading Flutter to 3.29.0 (#93 @amitkhairnar44)
    Open source →
  8. 2.5.0 19 Sep 2024
    Release notes

    Fix formatting behavior for US national numbers

    Open source →
    Release notes
    • Bump flutter_libphonenumber_platform_interface to 2.1.0
    • Bump flutter_libphonenumber_android to v1.4.0.
    • Bump flutter_libphonenumber_ios to v1.4.0.
    • Bump flutter_libphonenumber_web to v1.3.0.
    Open source →
  9. 2.4.0 18 Sep 2024
    Release notes

    Fix national number formatting

    Open source →
    Release notes
    • Bump flutter_libphonenumber_platform_interface to 2.0.0
    • Bump flutter_libphonenumber_android to v1.3.0.
    • Bump flutter_libphonenumber_ios to v1.3.0.
    • Bump flutter_libphonenumber_web to v1.2.0.
    Open source →
  10. 2.3.3 19 Aug 2024
    Release notes
    • Bump flutter_libphonenumber_android to v1.2.0.
    Open source →
  11. 2.3.2 19 Aug 2024
    Release notes
    • Bump flutter_libphonenumber_ios to v1.2.2.
    Open source →
  12. 2.3.1 19 Aug 2024
    Release notes
    • Bump flutter_libphonenumber_android to v1.1.0.
    Open source →
  13. 2.3.0 01 Aug 2024

    Nothing published for this version

  14. 2.2.3 16 Apr 2024
    Release notes
    • Bump flutter_libphonenumber_web to v1.0.1.
    Open source →
  15. 2.2.2 16 Apr 2024
    Release notes
    • Bump flutter_libphonenumber_ios to v1.2.1.
    Open source →
  16. 2.2.1 07 Dec 2023
    Release notes
    • Fix init method overrides, from @nikolaychernov.
    Open source →
  17. 2.2.0 07 Dec 2023
    Release notes
    • Bump flutter_libphonenumber_ios to v1.2.0.
    • BREAKING Raises minimum iOS deployment to 12.0.
    Open source →
  18. 2.1.5 19 Jul 2023
    Release notes
    • Bump flutter_libphonenumber_ios to v1.1.4.
    Open source →
  19. 2.1.4 08 Jun 2023
    Release notes

    Bump version on main package

    Open source →
    Release notes
    • Bump flutter_libphonenumber_ios to v1.1.3.
    Open source →
  20. 2.1.3 17 May 2023
    Release notes

    Bump flutter_libphonenumber

    Open source →
    Release notes
    • Fix pod issue with PhoneNumberKit by bumping flutter_libphonenumber_ios version to latest.
    Open source →
  21. 2.1.2 01 May 2023
    Release notes
    • Fix compatibility with AGP 8.0 (#43).
    Open source →
  22. 2.1.1 01 May 2023
    Release notes
    • Fix pod configuration for PhoneNumberKit.
    Open source →
  23. 2.1.0 01 May 2023
    Release notes
    • BREAKING: Bumped flutter_libphonenumber_ios to 1.1.0 which includes the latest PhoneNumberKit version. You must include the entry in your Podfile now. See updated README for details.
    Open source →
  24. 2.0.0 24 Mar 2023
    Release notes
    • Migrated to new federated plugin configuration.
    • Added web implementation from laynor.
    Open source →
  25. 1.4.0 10 Mar 2023
    Release notes
    • Fixed onFormatFinished callback not being called when shouldKeepCursorAtEndOfInput=true.
    Open source →
  26. 1.3.0 05 Dec 2022
    Release notes
    • Adds a new field (region_code) to the result of the parse method.
    • Upgrades the dependencies:
      • libphonenumber to 8.12.52
      • PhoneNumberKit to 3.3.4
    • Fixes some lint issues.
    • Upgrade gradle/kotlin versions in android project.
    Open source →
  27. 1.2.4 10 Mar 2022
    Release notes
    • Fixed some edge cases with cursor position when shouldKeepCursorAtEndOfInput is set to false
    Open source →
  28. 1.2.3 08 Mar 2022
    Release notes
    • New optional setting shouldKeepCursorAtEndOfInput on LibPhonenumberTextFormatter which will either keep the cursor at the end of the input if the middle of the input is changed, or the cursor will remain at the same position as where it was edited.
    Open source →
  29. 1.2.2 13 Jan 2022
    Release notes
    • Replaced jcenter with maven central (JeremyLWright).
    Open source →
  30. 1.2.1 11 Sep 2021
    Release notes
    • Fixed bug where region was not passed to parse call in getFormattedParseResult.
    Open source →
  31. 1.2.0 26 Aug 2021
    Release notes
    • BREAKING: renamed hideCountryCode to inputContainsCountryCode in LibPhonenumberTextFormatter.
    • BREAKING: renamed removeCountryCode to removeCountryCodeFromResult and added new parameter inputContainsCountryCode in formatNumberSync(). Use this to accurately describe if the input number contains a country code and whether or not the result should strip that country code out.
    Open source →
  32. 1.1.0 01 Jul 2021
    Release notes
    • Improvements to how masking is performed.
    • Now allows for additional digits to be added on the end of the input mask for countries with varying number patterns.
    Open source →
  33. 1.0.4 08 Jun 2021
    Release notes
    • Fix number parsing issue by not attaching a leading '+' anymore. This fixes the problem parsing GB numbers starting with 07 which didn't have the 44 country code at the start.
    • Bumped libphonenumber version on android.
    Open source →
  34. 1.0.3 10 Feb 2021
    Release notes
    • Nullsafety for main version.
    • UK numbers will correctly remove leading 0 now on international numbers.
    Open source →
  35. 1.0.2-nullsafety 03 Feb 2021 pre-release
    Release notes
    • Bumped underlying native lib versions. PhoneNumberKit -> 3.3.3, libphonenumber -> 8.12.17.
    Open source →
  36. 1.0.1-nullsafety 22 Nov 2020 pre-release
    Release notes
    • Add constraint for flutter v1.10.0.
    Open source →
  37. 1.0.0-nullsafety 22 Nov 2020 pre-release
    Release notes
    • Migrate to null safety.
    Open source →
  38. 0.3.12 03 Feb 2021

    Nothing published for this version

  39. 0.3.11 02 Nov 2020
    Release notes
    • Update iOS minimum deployment to 9.0.
    Open source →
  40. 0.3.10 27 Oct 2020
    Release notes
    • Bumped PhoneNumberKit to 3.3 (iOS) and libphonenumber to 8.12.11 (Android).
    • Fixed overflows in example app on smaller devices.
    Open source →
  41. 0.3.9 19 Oct 2020
    Release notes
    • Bump android compileSdkVersion to 29.
    Open source →
  42. 0.3.8 29 Sep 2020
    Release notes
    • Downgrade Android minSdkVersion version from 21 to 18 and bump libphonenumber version from 8.12.5 to 8.12.10 via #3.
    Open source →
  43. 0.3.7 15 Jul 2020
    Release notes
    • Fixed bug where device locale was not correctly detected on iOS.
    Open source →
  44. 0.3.6 09 Jul 2020
    Release notes
    • Hide debug printing.
    Open source →
  45. 0.3.5 25 Jun 2020
    Release notes
    • Added ability to override country mask/phone data. Added fix for UK international numbers when someone pastes in a national format.
    Open source →
  46. 0.3.4 16 Jun 2020
    Release notes
    • Fixed bug when formatting the very first number where it wouldn't move the text selection to the very end.
    Open source →
  47. 0.3.3 12 Jun 2020
    Release notes
    • Fixed bug where realtime formatter didn't ignore leading country code if present when overrideSkipCountryCode was provided.
    Open source →
  48. 0.3.2 12 Jun 2020
    Release notes
    • Fixed formatParsePhonenumberAsync to return the correct phone number international/national format based on what was requested.
    Open source →
  49. 0.3.1 10 Jun 2020
    Release notes
    • Fixes to documentation.
    Open source →
  50. 0.3.0 10 Jun 2020
    Release notes
    • Can now format based on the national or international format of a country's phone number.
    Open source →
  51. 0.2.0 05 Jun 2020
    Release notes
    • Added ability to format numbers as either mobile or fixed line, while defaulting to mobile.
    Open source →
  52. 0.1.5 05 Jun 2020
    Release notes
    • Cleanup
    Open source →
  53. 0.1.4 05 Jun 2020
    Release notes
    • Fixed bugs in the way masking is applied which caused numbers to be formatted incorrectly to their mask.
    Open source →
  54. 0.1.3 05 Jun 2020
    Release notes
    • Removed print statements
    • Countries list in CountryManager is now read-only outside of the lib
    Open source →
  55. 0.1.2 05 Jun 2020
    Release notes
    • Added example gifs
    Open source →
  56. 0.1.1 05 Jun 2020
    Release notes
    • Package metadata fixes
    Open source →
  57. 0.1.0 05 Jun 2020
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive