Skip to content
pubscout

sim_card_code

0.2.0, released 6 months ago by an unverified publisher

Access SIM card details, mobile network info, eSIM status, and multi-SIM info in Flutter.

WASM-ready
$ flutter pub add sim_card_code
Source repository

What it does

A Flutter plugin providing access to cellular network operators, country codes, SIM states, device IDs, eSIM support, and multi-SIM information on Android and iOS. It also supports reactive change streams for monitoring SIM insertions, removals, and network switching.

AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to read SIM card details, operator names, or country codes.
  • Your app needs to detect multi-SIM setups and look up individual subscription IDs.
  • You need to listen for live SIM or network roaming changes.

Skip it when

  • Targeting iOS platforms where phone number, IMEI, ICCID, and roaming are restricted by privacy limits.
  • You cannot handle native Android permissions like READ_PHONE_STATE.

Strengths

  • Supports both multi-SIM and eSIM information lookup.
  • Provides reactive stream updates for SIM and network state changes.
  • Typed network info enums for generation (2G-5G) and type.

Weaknesses

  • iOS has platform-level privacy limitations hiding phone numbers, IMEIs, and ICCIDs.
  • Requires runtime Android permissions for full phone state access.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Android requires adding the READ_PHONE_STATE permission to AndroidManifest.xml and requesting it at runtime. iOS 13.0+ requires the esim-access entitlement for supportsEsim.

import 'package:sim_card_code/sim_card_code.dart';

final country = await SimCardManager.simCountryCode;
final net = await SimCardManager.networkInfo;
final esim = await SimCardManager.isEsim;

SimCardManager.onChanged.listen((e) => print('changed: ${e.type}'));

Alternatives

Packages that do the same job and could replace sim_card_code.