service 2-5-26-1
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user