simple_database 2.0.1 copy "simple_database: ^2.0.1" to clipboard
simple_database: ^2.0.1 copied to clipboard

A simple lightweight wrapper for the SharedPreferences Flutter package.

example/example.dart

import '../lib/simple_database.dart';

void main() async {
    SimpleDatabase names = SimpleDatabase(name: 'names');

    await names.add('Bob');
    await names.add('Doug');

    //Get all of the strings in the database
    for (var name in await names.getAllType<String>()) {
      print(name);
    }
}
6
likes
120
pub points
63%
popularity

Publisher

unverified uploader

A simple lightweight wrapper for the SharedPreferences Flutter package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on simple_database