Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | @@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | ||
| 88 | _getIntent(); | 88 | _getIntent(); |
| 89 | Future.delayed(Duration(milliseconds: 30000), () { | 89 | Future.delayed(Duration(milliseconds: 30000), () { |
| 90 | ContactModel.getInstance().uploadLocalContact(context); | 90 | ContactModel.getInstance().uploadLocalContact(context); |
| 91 | - UpdateModel updateModel = new UpdateModel(); | 91 | + UpdateModel updateModel = Provider.of<UpdateModel>(context); |
| 92 | updateModel.checkUpdate(context, showToast: false); | 92 | updateModel.checkUpdate(context, showToast: false); |
| 93 | }); | 93 | }); |
| 94 | timer = Timer.periodic(Duration(minutes: 3), (_) { | 94 | timer = Timer.periodic(Duration(minutes: 3), (_) { |
-
Please register or login to post a comment