diff --git a/lib/controller/firebase/firbase_messge.dart b/lib/controller/firebase/firbase_messge.dart index 30d854e..1de5919 100644 --- a/lib/controller/firebase/firbase_messge.dart +++ b/lib/controller/firebase/firbase_messge.dart @@ -130,7 +130,7 @@ class FirebaseMessagesController extends GetxController { // var myPoints = jsonDecode(points) as List; driverToken = myList[14].toString(); // This is for location using and uploading status - Get.find().changeRideId(); + Get.put(HomeCaptainController()).changeRideId(); update(); // print('driverToken==============$driverToken'); Get.to(() => OrderRequestPage(), arguments: { diff --git a/lib/controller/functions/location_controller.dart b/lib/controller/functions/location_controller.dart index 4a0a706..c217c17 100644 --- a/lib/controller/functions/location_controller.dart +++ b/lib/controller/functions/location_controller.dart @@ -72,14 +72,14 @@ class LocationController extends GetxController { 'status': box.read(BoxName.statusDriverLocation).toString() }); // Animate camera to user location (optional) - if (Get.find().rideId == 'rideId') { - Get.find() - .mapController! - .animateCamera(CameraUpdate.newLatLng(LatLng( - Get.find().myLocation.latitude, - Get.find().myLocation.longitude, - ))); - } + // if (Get.find().rideId == 'rideId') { + // Get.find() + // .mapController! + // .animateCamera(CameraUpdate.newLatLng(LatLng( + // Get.find().myLocation.latitude, + // Get.find().myLocation.longitude, + // ))); + // } Get.find() .mapHomeCaptainController .animateCamera(CameraUpdate.newLatLng(LatLng( diff --git a/lib/controller/home/captin/map_driver_controller.dart b/lib/controller/home/captin/map_driver_controller.dart index b1810b2..3066921 100644 --- a/lib/controller/home/captin/map_driver_controller.dart +++ b/lib/controller/home/captin/map_driver_controller.dart @@ -469,7 +469,7 @@ class MapDriverController extends GetxController { Future.delayed(const Duration(milliseconds: 300)); FirebaseMessagesController().sendNotificationToPassengerToken( 'Driver Finish Trip', - 'you will pay to Driver'.tr + ' $totalCost \$'.tr, + 'you will pay to Driver'.tr + ' $price \$'.tr, tokenPassenger, [ box.read(BoxName.driverID),