5/11/1
This commit is contained in:
@@ -105,7 +105,7 @@ GetBuilder<HomeCaptainController> leftMainMenuCaptainIcons() {
|
||||
borderRadius: BorderRadius.circular(15)),
|
||||
child: IconButton(
|
||||
onPressed: () {
|
||||
controller.mapHomeCaptainController
|
||||
controller.mapHomeCaptainController!
|
||||
.animateCamera(CameraUpdate.newLatLng(LatLng(
|
||||
Get.find<LocationController>().myLocation.latitude,
|
||||
Get.find<LocationController>().myLocation.longitude,
|
||||
|
||||
@@ -309,8 +309,6 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
kolor: AppColor.greenColor,
|
||||
title: 'Accept Order'.tr,
|
||||
onPressed: () async {
|
||||
box.write(BoxName.statusDriverLocation, 'on');
|
||||
|
||||
var res = await CRUD()
|
||||
.post(link: AppLink.updateStausFromSpeed, payload: {
|
||||
'id': myList[16],
|
||||
@@ -337,6 +335,7 @@ class OrderSpeedRequest extends StatelessWidget {
|
||||
Get.back();
|
||||
}));
|
||||
} else if (jsonDecode(res)['status'] == "success") {
|
||||
box.write(BoxName.statusDriverLocation, 'on');
|
||||
List<String> bodyToPassenger = [
|
||||
box.read(BoxName.driverID).toString(),
|
||||
box.read(BoxName.nameDriver).toString(),
|
||||
|
||||
Reference in New Issue
Block a user