Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_secure_storage

Secure key-value storage using platform-specific secure mechanisms

pub.devRemove
prefs

A static wrapper around shared_preferences for reading and writing app preferences.

pub.devRemove
ScoresHealth93 (best)46
Maintenance88 (best)2
Quality100 (best)91
Popularity98 (best)20
Community80 (best)52
Compatibility100100
UsageDownloads (30 days)6.5M (best)676
Likes4.5k (best)15
Pub points160 / 160 (best)140 / 160
GitHub stars1.3k (best)9
MaintenanceLatest release11.2.0, 2 months ago (best)4.2.0, 2 years ago
Major versions in 12 months00
Contributors100+ (best)3
Publishersteenbakker.devandrioussolutions.com
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPlugin (native code)Flutter widgets
Code generationNoNo
Direct dependencies62 (best)
LicenseBSD-3-CLAUSEAPACHE-2.0
Setup effortMediumLow
JudgementStrengths
  • Built-in encryption with RSA OAEP + AES-GCM
  • Cross-platform support with native APIs
  • Optional biometric authentication and accessibility options
  • Static function calls make it accessible anywhere in the app
  • Supports multiple platforms including Android, iOS, Web, Windows, macOS, and Linux
Weaknesses
  • Web support limited to HTTPS or localhost
  • Requires native configuration (e.g., disabling backup on Android)
  • No built-in migration for schema changes
  • Relies on shared_preferences which does not guarantee writes to disk
  • Not suitable for critical data storage
Warnings
  • Native setup
None
flutter_secure_storage vs prefs: which Flutter package should you use? | pubscout