Update: 2026-06-25 18:39:01

This commit is contained in:
Hamza-Ayed
2026-06-25 18:39:01 +03:00
parent a4d9d8e74c
commit 9b61bd50c8
11 changed files with 108 additions and 29 deletions

View File

@@ -144,21 +144,22 @@ class DriversCantRegister extends StatelessWidget {
},
),
// Edit button → go to registration form
buildActionButton(
icon: CupertinoIcons
.pencil_ellipsis_rectangle,
color: AppColor.gold,
onPressed: () {
Get.to(
() => const ReviewDriverPage(),
arguments: {
"phone": driver['phone_number'],
"driverId": driver['driverId'],
},
);
},
),
// Edit button → go to review page (only if driverId exists)
if (driver['driverId'] != null)
buildActionButton(
icon: CupertinoIcons
.pencil_ellipsis_rectangle,
color: AppColor.gold,
onPressed: () {
Get.to(
() => const ReviewDriverPage(),
arguments: {
"phone": driver['phone_number'],
"driverId": driver['driverId'],
},
);
},
),
buildActionButton(
icon: CupertinoIcons
.pencil_ellipsis_rectangle,