feat: add remote pull and push
This commit is contained in:
@@ -7,6 +7,7 @@ import '../services/default_product_seeder.dart';
|
||||
import '../services/export_service.dart';
|
||||
import '../viewmodels/bar_screen_view_model.dart';
|
||||
import '../viewmodels/product_list_view_model.dart';
|
||||
import '../viewmodels/remote_sync_view_model.dart';
|
||||
|
||||
class AppBootstrap extends StatefulWidget {
|
||||
final Widget child;
|
||||
@@ -33,6 +34,8 @@ class _AppBootstrapState extends State<AppBootstrap> {
|
||||
|
||||
DefaultExportService(database: database).uploadToServer();
|
||||
|
||||
context.read<RemoteSyncViewModel>().init();
|
||||
|
||||
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
|
||||
});
|
||||
}
|
||||
@@ -41,4 +44,4 @@ class _AppBootstrapState extends State<AppBootstrap> {
|
||||
Widget build(BuildContext context) {
|
||||
return widget.child;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user