redux_persist_flutter
0.9.0, released 6 years ago by cretezy.com
Flutter storage engine for redux_persist, saving state to a file or shared preferences.
What it does
Provides a FlutterStorage class that persists Redux state to the app's document directory or to shared preferences. Supports web via shared preferences and includes null‑safety support.
AI-written summary of version 0.9.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need simple persistence of Redux state across app launches
- You want a cross‑platform solution (mobile + web) without a full database
- You prefer a file or key‑value store over SQL
Skip it when
- You require encrypted or secure storage
- You need to query large structured data
- You are not using redux_persist
Strengths
- Very easy to integrate with redux_persist
- Works on mobile and web out of the box
- Supports both file and shared‑preferences storage
Weaknesses
- No built‑in encryption
- Limited to key‑value/file storage, not suitable for complex queries
- Tied to redux_persist, not a general purpose storage
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
final persistor = Persistor<State>(
storage: FlutterStorage(),
);Alternatives
Packages that do the same job and could replace redux_persist_flutter.
- flutter_secure_storage
Provides encrypted storage for sensitive data
93Compare - sqflite
Full SQLite database when you need complex queries or large data
96Compare
Works with
Packages commonly used together with redux_persist_flutter: ones it builds on, ones built on it, and its own family.
- path_providerredux_persist_flutter depends on itProvides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
- shared_preferencesredux_persist_flutter depends on itFlutter plugin for reading and writing simple key-value pairs. Wraps NSUserDefaults on iOS and SharedPreferences on Android.
- redux_persistredux_persist_flutter depends on itPersist Redux state across app restarts with custom storage engines and serializers