shared_preferences_listener 0.1.0
shared_preferences_listener: ^0.1.0 copied to clipboard
A powerful Flutter plugin that extends SharedPreferences with reactive capabilities, allowing you to listen for changes in preference values across your app. Perfect for state management, settings syn [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add shared_preferences_listenerThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
shared_preferences_listener: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:shared_preferences_listener/shared_preferences_listener.dart';