datalocal_for_firestore 1.0.15 copy "datalocal_for_firestore: ^1.0.15" to clipboard
datalocal_for_firestore: ^1.0.15 copied to clipboard

Flutter local data with integration with firestore saved with state.

datalocal_for_firestore #

Flutter local data with integration with firestore saved with state

You can try it on datalocal.web.app.

Usage #

import 'package:datalocal_for_firestore/datalocal_for_firestore.dart';

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

DataLocal #

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

For example:

...
  state = await DataLocalForFirestore.create(
      "notes",
      onRefresh: () {
        setState(() {});
      },
    );
    state.onRefresh = () {
      data = state.data;
      setState(() {});
    };
    state.refresh();
    loading = false;
    setState(() {});
...
2
likes
0
points
218
downloads

Publisher

verified publisherlamun.my.id

Weekly Downloads

Flutter local data with integration with firestore saved with state.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cloud_firestore, datalocal, flutter, shared_preferences

More

Packages that depend on datalocal_for_firestore