diff --git a/assets/images/lady1.png b/assets/images/lady1.png new file mode 100644 index 0000000..c0e460c Binary files /dev/null and b/assets/images/lady1.png differ diff --git a/assets/images/moto1.png b/assets/images/moto1.png new file mode 100644 index 0000000..51158a1 Binary files /dev/null and b/assets/images/moto1.png differ diff --git a/lib/controller/functions/gemeni.dart b/lib/controller/functions/gemeni.dart index 63d19a9..158a2db 100644 --- a/lib/controller/functions/gemeni.dart +++ b/lib/controller/functions/gemeni.dart @@ -511,10 +511,11 @@ class AI extends GetxController { }, body: requestBody, ); - print(response.body); + if (response.statusCode == 200) { var responseData = jsonDecode(utf8.decode(response.bodyBytes)); // Process the responseData as needed + print(responseData); if (idType == 'car_back') { responseIdCardDriverEgyptBack = jsonDecode(responseData['content'][0]['text']); diff --git a/lib/views/auth/captin/cards/egypt_card_a_i.dart b/lib/views/auth/captin/cards/egypt_card_a_i.dart index 2a33cfd..91a2575 100644 --- a/lib/views/auth/captin/cards/egypt_card_a_i.dart +++ b/lib/views/auth/captin/cards/egypt_card_a_i.dart @@ -767,7 +767,8 @@ Please fill in the JSON object with the extracted information, following these g if (ai.responseIdCardDriverEgyptBack.isNotEmpty) { // Get the tax expiry date from the response final taxExpiryDate = ai.responseIdCardDriverEgyptBack['tax_expiry']; - + // final displacement = ai.responseIdCardDriverEgyptBack['displacement']; + // if (int.parse(displacement) < 1000) {} // Get the inspection date from the response final inspectionDate = ai.responseIdCardDriverEgyptBack['inspection_date'];