This commit is contained in:
Hamza-Ayed
2024-05-11 00:58:11 +03:00
parent b473a9ce09
commit 750d980fcb
38 changed files with 329 additions and 1814 deletions

View File

@@ -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(),