Skip to content

Lonely-shang/flutter_sim_card_info

Repository files navigation

sim_card_info

Flutter SimCardInfo for Android API 23+.

Installation

flutter pub add sim_card_info
or
dart pub add sim_card_info

API

hasPermission

  bool permisson = await SimCardInfo.hasPermission;

requestPermission

  await SimCardInfo.requestPermission;

getSimCardInfo

  List<SimCard> simCardList = await SimCardInfo.getSimCardInfo;
  if (!simCardList.isNotEmpty) {
    TODO("Traverse simCardList to get sim card information")
  } else {
    TODO("No phone number on sim card")
  }

About

Get SimCard Information

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published