mobile_number 0.0.5 copy "mobile_number: ^0.0.5" to clipboard
mobile_number: ^0.0.5 copied to clipboard

outdated

A Flutter plugin for fetching the device's mobile number

mobile_number #

This is a FLutter Plugin to get the device mobile number.

Note: It works for Android only because getting mobile number of sim card is not supported in iOS.

Note: If the mobile number is not pre-exist on sim card it will not return te phone number.

Installation #

https://pub.dev/packages/mobile_number

Add this to your package's pubspec.yaml file:

dependencies:
  mobile_number: ^0.0.5

Usage #

Get first sim card number

Future<String> getMobileNumber() async {
    final String mobileNumber = await MobileNumber.mobileNumber;
    return mobileNumber;
  }

#### Get List of sim cards for dual sim cards

Future<List


![alt text](https://github.com/amorenew/Flutter-Mobile-Number-Plugin/raw/master/sample1.png)
110
likes
0
points
2.96k
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for fetching the device's mobile number

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on mobile_number