sync_repository 1.2.0
sync_repository: ^1.2.0 copied to clipboard
Offline-first sync layer for Flutter apps. Wraps a remote repository with a local SharedPreferences store and a SyncRepository.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add sync_repositoryThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
sync_repository: ^1.2.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:sync_repository/sync_repository.dart';