Initial commit for driver_tripz

This commit is contained in:
Hamza-Ayed
2026-01-20 23:41:53 +03:00
parent 441385069c
commit 42a09bc6fa
25 changed files with 1954 additions and 1538 deletions

View File

@@ -358,7 +358,10 @@ class LoginDriverController extends GetxController {
' (jsonDecode(token): ${(jsonDecode(token)['data'][0]['token']).toString()}');
if ((jsonDecode(token)['data'][0]['token']) !=
(box.read(BoxName.tokenDriver))) {
Get.put(FirebaseMessagesController()).sendNotificationToDriverMAP(
final fcm = Get.isRegistered<FirebaseMessagesController>()
? Get.find<FirebaseMessagesController>()
: Get.put(FirebaseMessagesController());
fcm.sendNotificationToDriverMAP(
'token change',
'change device'.tr,
(jsonDecode(token)['data'][0]['token']).toString(),
@@ -367,6 +370,7 @@ class LoginDriverController extends GetxController {
await Get.defaultDialog(
title: 'you will use this device?'.tr,
middleText: '',
barrierDismissible: false,
confirm: MyElevatedButton(
title: 'Ok'.tr,
onPressed: () async {