Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 801 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 801 Bytes

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