Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedevice_region

A Flutter plugin to retrieve the SIM country code using platform-specific APIs.

pub.devRemove
devicelocale

Extract locales currently defined on the device independently of app settings.

pub.devRemove
ScoresHealth5079 (best)
Maintenance160 (best)
Quality9696
Popularity5889 (best)
Community5280 (best)
Compatibility100 (best)79
UsageDownloads (30 days)18k127k (best)
Likes26151 (best)
Pub points150 / 160150 / 160
GitHub stars747 (best)
MaintenanceLatest release1.4.0, 3 years ago0.9.1, 3 months ago (best)
Major versions in 12 months00
Contributors315 (best)
Publishermatszafraniec.xyzspiralarm.uk
FitPlatformsAndroid, iOS, Windows, LinuxAndroid, iOS, Web, macOS, Linux
WASM-readyYesNo
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies0 (best)1
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • Simple API with a single main method: getSIMCountryCode.
  • Handles deprecated iOS APIs by falling back to Locale for iOS 16.0 and higher.
  • Supports multiple platforms including Android, iOS, web, macOS, and Linux.
  • Provides both string-based and Flutter Locale object return types.
  • Supports Android per-app language preferences.
Weaknesses
  • Returns null on iOS simulators and devices without a SIM card.
  • Windows and Linux support is very basic and simply returns null instead of throwing an exception.
  • Linux and POSIX environments lack a standard API for preferred languages, returning only the current locale.
  • Requires platform-specific considerations for SwiftPM on older local Xcode setups.
Warnings
  • Native setup
  • Native setup
device_region vs devicelocale: which Flutter package should you use? | pubscout