From b5bf339085902b250d0414018e40f96f38a9f9ad Mon Sep 17 00:00:00 2001 From: Jefry Date: Tue, 2 Aug 2022 00:35:01 +0700 Subject: [PATCH] Update 'lib/home.dart' --- lib/home.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/home.dart b/lib/home.dart index e87f05e..bdb45e2 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -50,9 +50,9 @@ class _HomeState extends State { // await loadMenu(); final androidVersion = await DeviceInfoPlugin().androidInfo; if ((androidVersion.version.sdkInt ?? 0) >= 30) { - await util.permissionCheck(context,pHandler.Permission.manageExternalStorage,()async{print("storage permit granted!");},customMessage: " untuk menyimpan data backup"); + await util.permissionCheck(this.context,pHandler.Permission.manageExternalStorage,()async{print("storage permit granted!");},customMessage: " untuk menyimpan data backup"); } else { - await util.permissionCheck(context,pHandler.Permission.storage,()async{print("storage permit granted!");},customMessage: " untuk menyimpan data backup"); + await util.permissionCheck(this.context,pHandler.Permission.storage,()async{print("storage permit granted!");},customMessage: " untuk menyimpan data backup"); } }); }