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
flutter_exit_app

Platform-specific way to exit a Flutter app cleanly without calling exit(0).

pub.devRemove
ScoresHealth5067 (best)
Maintenance139 (best)
Quality96100 (best)
Popularity5868 (best)
Community52 (best)46
Compatibility100100
UsageDownloads (30 days)18k22k (best)
Likes2662 (best)
Pub points150 / 160160 / 160 (best)
GitHub stars712 (best)
MaintenanceLatest release1.4.0, 3 years ago2.1.2, 6 months ago (best)
Major versions in 12 months00
Contributors3 (best)2
Publishermatszafraniec.xyzlaoitdev.com
FitPlatformsAndroid, iOS, Windows, LinuxAndroid, iOS
WASM-readyYesYes
KindPlugin (native code)Plugin (native code)
Code generationNoNo
Direct dependencies00
LicenseMITMIT
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.
  • Apple guideline compliant default behavior for iOS
  • Cleanly removes the app from the Android recent tasks list
  • Written in modern Kotlin and Swift with full null-safety
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.
  • Force-exit mode on iOS may cause the app to appear to crash and can lead to App Store review rejection
  • Programmatically exiting apps is generally discouraged by mobile platforms
Warnings
  • Native setup
  • Native setup
device_region vs flutter_exit_app: which Flutter package should you use? | pubscout