sim_card_info
1.0.2, released 3 years ago by an unverified publisher
Flutter plugin to retrieve SIM card details such as carrier name, phone number and country code.
What it does
Provides a simple API to fetch SIM card information from Android, iOS, web and desktop platforms. Returns a list of SimInfo objects and handles platform exceptions gracefully.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need carrier name, phone number or country code from the device’s SIM card
- Building telecom‑related or location‑aware apps that require basic SIM data
Skip it when
- You require advanced telephony features beyond basic SIM info
- You need a solution that works without native permissions
Strengths
- Simple, single‑method API
- Cross‑platform support (mobile, web, desktop)
- Handles PlatformException internally
Weaknesses
- Limited to basic SIM fields
- Permission handling not detailed in docs
- May not work on devices without SIM or restricted OS versions
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Add required permissions (e.g., READ_PHONE_STATE on Android, appropriate keys in iOS Info.plist) and run flutter pub get
import 'package:sim_card_info/sim_card_info.dart';
final plugin = SimCardInfo();
List<SimInfo>? sims = await plugin.getSimInfo() ?? [];Alternatives
Packages that do the same job and could replace sim_card_info.
- app_settings
Open iOS and Android phone settings pages from a Flutter app.
89Compare - sim_card_code
Access SIM card details, mobile network info, eSIM status, and multi-SIM info in Flutter.
55Compare - device_region
A Flutter plugin to retrieve the SIM country code using platform-specific APIs.
50Compare - ccid
Flutter plugin for smart card readers using CCID protocol with PC/SC-like APIs.
66Compare
Works with
Packages commonly used together with sim_card_info: ones it builds on, ones built on it, and its own family.