Update: 2026-06-25 18:39:01
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -48,7 +48,7 @@ class ReviewDriverController extends GetxController {
|
||||
'profile_picture': Icons.person,
|
||||
};
|
||||
|
||||
String get country => box.read('countryCode')?.toString() ?? 'Syria';
|
||||
String get country => box.read('countryCode')?.toString() ?? 'Jordan';
|
||||
|
||||
static const Map<String, List<List<dynamic>>> fieldConfig = {
|
||||
'id_front': [
|
||||
|
||||
Reference in New Issue
Block a user