onepref 0.0.1 onepref: ^0.0.1 copied to clipboard
A simplified version of SharedPreferences.
This package is endorsed, which means you can simply use shared_preferences normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.
Features #
EasyPref offers the same functionality shared_preferences package offers, so it in this package you will easily access the shared_preferences methods everywhere in your app. ........... To write/store a string EasyPref.setString("key","value here");
To access/get the string var value = EasyPref.getString("key"); ...........
Getting started #
flutter pub add EasyPref
Import `/EasyPref.dart`
Call this 'EasyPref.Init();' once in your opening screen such splash screen, to activate the shared_preferences.
Usage #
To Write
EasyPref.setString("key","value here");
Get the Value
const value = EasyPref.getString("key");
Additional information #
init push