When to use Shared Preferences
Simple key-value storage for settings, flags and small preferences.
Pros
- Good for small values
- Simple API
Watch outs
- Not for secure or relational data
Simple key-value storage for settings, flags and small preferences.
flutter pub add shared_preferences
Simple key-value storage for settings, flags and small preferences.
Secure platform storage for tokens and sensitive small values.
flutter pub add flutter_secure_storage
Fast local NoSQL storage for offline-first Flutter apps.
flutter pub add hive
A Dart code generation package for Role-Based UI Access Control in Flutter widgets.
flutter pub add guardify
A flutter package which makes easy to use JWT token to store and get details encoded in JWT Token.
flutter pub add flutter_session_jwt
macOS platform implementation of flutter_barcode_sdk.
flutter pub add flutter_barcode_sdk_macos
A customizable Flutter reader widget for novels and ebooks: lazy chapter loading, paginated and continuous-scroll modes, themes, and pluggable data sources & progress storage.
flutter pub add flutter_book_reader