onepref 0.0.5 copy "onepref: ^0.0.5" to clipboard
onepref: ^0.0.5 copied to clipboard

outdated

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 #

OnePref offers the same functionality shared_preferences package offers, so in this package you will easily access the shared_preferences methods everywhere in your app.

Getting started #

flutter pub add onepref
import 'package:onepref/onepref.dart' 
//This can be your splash screen or Main.dart
 @override
  void initState() {
    super.initState();

    //Call this to activate the OnePref sharedPreference instance
    OnePref.init();
  }

Usage #

To Write

OnePref.setString("key","value here");
Get the Value

const value = OnePref.getString("key");
22
likes
0
points
126
downloads

Publisher

verified publisherdingi.icu

Weekly Downloads

A simplified version of SharedPreferences.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on onepref