From a6d93a935c52387d4af43cfc8d15ffa33fc29e91 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 2 May 2024 12:29:42 +0300 Subject: [PATCH] 5/2/driver3 --- lib/main.dart | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index bd836a2..3134ddc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -57,17 +57,16 @@ void main() async { print(Get.deviceLocale!.countryCode); Stripe.publishableKey = AK.publishableKey; - // if (box.read(BoxName.driverID) != null) { - Get.defaultDialog( - title: 'Gps required', - middleText: '', - confirm: MyElevatedButton( - title: 'ok'.tr, - onPressed: () { - Get.put(LocationBackgroundController()); - })); - - // } + if (box.read(BoxName.driverID) != null) { + Get.defaultDialog( + title: 'Gps required', + middleText: '', + confirm: MyElevatedButton( + title: 'ok'.tr, + onPressed: () { + Get.put(LocationBackgroundController()); + })); + } if (Platform.isAndroid || Platform.isIOS) { await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform,