static_sharedpreferences 2.0.0
static_sharedpreferences: ^2.0.0 copied to clipboard
Package for reading and writing simple key-value pairs. This wraps the shared_preferences plugin from the Flutter Team.
static_sharedpreferences #
A Flutter package which uses the shared_preferences plugin from flutter.dev in a static way. This depends on the shared_preferences: ^0.5.7+2 plugin from flutter.dev.
Getting Started #
You just have to put SP.initialize(); in your main:
void main() {
WidgetsFlutterBinding.ensureInitialized();
SP.initialize();
}
and now you can get started.