Commit f8673dc15b187fa7c88d12453df625e1adeb30de

Authored by wdn127929
1 parent 4d79a0af

自动更新bug

Showing 1 changed file with 1 additions and 1 deletions
... ... @@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
_getIntent();
Future.delayed(Duration(milliseconds: 30000), () {
ContactModel.getInstance().uploadLocalContact(context);
UpdateModel updateModel = new UpdateModel();
UpdateModel updateModel = Provider.of<UpdateModel>(context);
updateModel.checkUpdate(context, showToast: false);
});
timer = Timer.periodic(Duration(minutes: 3), (_) {
... ...