mobile_number_picker 0.0.1+5 icon indicating copy to clipboard operation
mobile_number_picker: ^0.0.1+5 copied to clipboard

PlatformAndroid

A Flutter Plugin fo inflate mobile number picker for Android only.

mobile_number_picker #

Note: It works for Android only because getting mobile number is not supported in IOS.

Mobile Picker uses Google Auth Api to access credentail api and then retrieve the phone number hint picker from there.

Steps to integrate #

  • Create object of Mobile Number Picker Class.
MobileNumberPicker mobileNumber = MobileNumberPicker();

  • Call mobileNumber function to initiate the Auth Api.
mobileNumber.mobileNumber();
  • Listen to getMobileNumberStream to fetch events.
mobileNumber.getMobileNumberStream.listen((event) {});

MobileNumber Class #

Members of mobilenumber class -

  • String completeNumber - Return complete mobile number including the country code , eg: +919999999999.

  • String phoneNumber - Return mobile number after reducing the country code , eg: 9999999999.

  • String countryCode - Return country code from the selected phone number , eg: +91.

  • enum state - Whether the mobile number is selected or not.

Type of state #

  • PhoneNumberSelected - when user selects one of the number from the hint picker.

  • NoneOfTheAbove - when user selects None Of The Above option or dismisses the picker.

Screenshot #

Image

12
likes
130
pub points
85%
popularity

Publisher

unverified uploader

A Flutter Plugin fo inflate mobile number picker for Android only.

Homepage

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on mobile_number_picker