datalocal 1.0.12 copy "datalocal: ^1.0.12" to clipboard
datalocal: ^1.0.12 copied to clipboard

Flutter dependency to save data via local saved with state, easy to use and fast.

datalocal #

Flutter local data saved with state

You can try it on datalocal.web.app.

Usage #

import 'package:datalocal/datalocal.dart';

...
Future<void> initialize() async {
  state = await DataLocal.create(
      "notes",
      onRefresh: () {
        setState(() {});
      },
    );
    state.onRefresh = () {
      data = state.data;
      setState(() {});
    };
    state.refresh();
  ...
...

DataLocal #

[DataLocal] is a class to initialize and save any state of data

For example:

...
  state = await DataLocal.create(
      "notes",
      onRefresh: () {
        setState(() {});
      },
    );
    state.onRefresh = () {
      data = state.data;
      setState(() {});
    };
    state.refresh();
    loading = false;
    setState(() {});
...
2
likes
140
pub points
51%
popularity

Publisher

verified publisherlamun.my.id

Flutter dependency to save data via local saved with state, easy to use and fast.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, pointycastle, shared_preferences

More

Packages that depend on datalocal