shared_preferences
2.5.6, released 6 weeks ago by flutter.dev
Flutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
What it does
This is the author's description from pub.dev. We haven't written a summary with use cases and trade-offs for this package yet.
Setup
- Kind
- Plugin (native code)
- Code generation
- No
- Direct dependencies
- 6
Alternatives
Packages that do the same job and could replace shared_preferences.
- simple_secure_storage
Secure key‑value storage for Flutter with platform‑specific backends.
77Compare - shared_preference_app_group
Shared preferences for iOS and macOS App Groups using NSUserDefaults.
64Compare - mmkv
An efficient, small mobile key-value storage framework.
87Compare - tostore
Local data engine providing key-value, SQL/NoSQL tables, vector embeddings, and hybrid text search.
88Compare
Works with
Packages commonly used together with shared_preferences: ones it builds on, ones built on it, and its own family.
- shared_preferences_androidshared_preferences depends on itAndroid backend for the shared_preferences plugin, storing key‑value data on Android devices.
- shared_preferences_windowsshared_preferences depends on itWindows platform implementation for shared_preferences
- supabase_flutterBuilt on shared_preferencesFlutter client for Supabase providing auth, database, realtime, storage and edge functions.
- easy_localizationBuilt on shared_preferencesEasy and fast Flutter internationalization with JSON/CSV/… loaders
- emoji_picker_flutterBuilt on shared_preferencesAn emoji picker widget for Flutter with multiple categories, search, and skin tone support.
- flutter_foreground_taskBuilt on shared_preferencesImplement and manage foreground services on Android and iOS platforms.
- upgraderBuilt on shared_preferencesPrompt users to upgrade when a newer version of the app is available in the store.
- another_flushbarBuilt on shared_preferencesA flexible, customizable notification bar widget replacing Snackbars and Toasts.