Skip to content

hariprasadiit/flutter_libphonenumber

Repository files navigation

Flutter libphonenumber

Flutter plugin wrapper to Google's libphonenumber

Uses flutter platform channel to communicate with native implementation of libphonenumber.

This library uses below native libraries

NOTE

Only number parsing is implemented as of now

Usage

try{
  final parsed = await FlutterLibPhoneNumber.parse(_phoneController.text);
} on PlatformException catch(e){
  debugPrint(e.code +' --- '+e.message);
}

parse() takes 2 parameters.

    numberString - Number string to be parsed

    defaultRegion - default is IN. Used when country code prefix is not provided with phone number string

About

Flutter plugin wrapper to Google's libphonenumber

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published