sim_country_code_plus 0.1.3 copy "sim_country_code_plus: ^0.1.3" to clipboard
sim_country_code_plus: ^0.1.3 copied to clipboard

A Flutter plugin to get the SIM card country code.

sim_country_code_plus #

A Flutter plugin to get the SIM card country code.

Features #

  • Get the ISO country code of the current SIM card
  • Supports Android and iOS platforms
  • Simple and easy to use API

Getting started #

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

dependencies:
  sim_country_code_plus: ^0.1.3

Usage #

import 'package:sim_country_code_plus/sim_country_code_plus.dart';

// Get the SIM country code
String? countryCode = await SimCountryCodePlus.simCountryCode;
print('SIM Country Code: $countryCode');

Additional information #

Android #

This plugin requires the following permissions in your Android Manifest:

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

iOS #

Add the following keys to your Info.plist file:

<key>NSCarrierUsageDescription</key>
<string>This app needs access to carrier info to get the SIM country code</string>

License #

MIT License

2
likes
150
points
228
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to get the SIM card country code.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on sim_country_code_plus

Packages that implement sim_country_code_plus