redux_persist_flutter 0.9.0 redux_persist_flutter: ^0.9.0 copied to clipboard
Redux Persist Flutter Integration with custom storage engines
Flutter Storage Engine for
Can either save to your application document directory
(default, recommended), or
final persistor = Persistor<State>( // ... storage: FlutterStorage(), );
It is recommended to load initial state before calling
runApp to let Flutter
show the splash screen until we are ready to render.
By default, it saves to
(application document directory, recommended).
You can also save to your shared preferences by using
// Use shared preferences FlutterStorage(location: FlutterSaveLocation.sharedPreferences); // Use document file FlutterStorage(location: FlutterSaveLocation.documentFile);
Flutter Web #
Flutter Web is supported using the
You can pass a
key argument to
FlutterStorage to provide a key
for the file name (document file) or the shared preference key.
Android may keep files around after uninstalling an app.
If you don't want this behaviour, add
Features and bugs #
Please file feature requests and bugs at the issue tracker.