service 2-5-26-1

This commit is contained in:
Hamza-Ayed
2026-05-02 15:12:46 +03:00
parent c3f29f30c1
commit 255724418c
25 changed files with 1063 additions and 530 deletions

View File

@@ -262,7 +262,7 @@ class Main extends StatelessWidget {
"license_type": mainController.licenseTypeController.text,
"phone": mainController.phoneController.text,
});
if (res != 'failure') {
if (res != 'failure' && res['status'] == 'success') {
Get.back();
mainController.driverNameController.clear();
mainController.nationalIdController.clear();
@@ -361,7 +361,7 @@ class Main extends StatelessWidget {
"phone": mainController.phoneCarController.text,
});
Log.print('res: ${res}');
if (res != 'failure') {
if (res != 'failure' && res['status'] == 'success') {
Get.back();
mainController.ownerController.clear();
mainController.carNumberController.clear();