6/22/1
This commit is contained in:
@@ -645,7 +645,6 @@ Output the extracted information in the following JSON formate and make date for
|
||||
// sql
|
||||
// .getAllData(
|
||||
// TableName.faceDetectTimes)
|
||||
// .then((value) => print(
|
||||
// value[0]['faceDetectTimes']));
|
||||
// },
|
||||
// ),
|
||||
@@ -865,8 +864,7 @@ Output the extracted information in the following JSON formate and make date for
|
||||
kolor: AppColor.yellowColor,
|
||||
onPressed: () {
|
||||
sql.deleteAllData(TableName.faceDetectTimes);
|
||||
sql.getAllData(TableName.faceDetectTimes).then(
|
||||
(value) => print(value[0]['faceDetectTimes']));
|
||||
sql.getAllData(TableName.faceDetectTimes);
|
||||
},
|
||||
)
|
||||
],
|
||||
|
||||
@@ -34,7 +34,6 @@ class CarLicensePage extends StatelessWidget {
|
||||
//3vQRyaYYSWpmv69A58ZOkxmeK6M1mgwEDlXrXlBl
|
||||
//0pALdqDDYHvzp73Q59SIgbzjG7Z2zkhJXr
|
||||
// String? visionApi = AK.serverPHP;
|
||||
// print(AK.visionApi);
|
||||
await carRegistrationRecognizerController.scanText();
|
||||
},
|
||||
)),
|
||||
|
||||
@@ -90,7 +90,6 @@ class EgyptCardAI extends StatelessWidget {
|
||||
right: 30,
|
||||
left: 30,
|
||||
child: GetBuilder<AI>(builder: (controller) {
|
||||
print(controller.approved);
|
||||
return controller.approved == false
|
||||
? Container(
|
||||
decoration: AppStyle.boxDecoration1,
|
||||
@@ -641,8 +640,6 @@ class EgyptCardAI extends StatelessWidget {
|
||||
return GetBuilder<AI>(
|
||||
builder: (ai) {
|
||||
if (ai.responseIdCardDriverEgyptBack.isNotEmpty) {
|
||||
// print(ai.responseIdCardDriverEgyptBack);
|
||||
|
||||
// Get the tax expiry date from the response
|
||||
final taxExpiryDate = ai.responseIdCardDriverEgyptBack['tax_expiry'];
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ class GeminiEgypt extends GetxController {
|
||||
},
|
||||
]
|
||||
});
|
||||
// print(requestBody);
|
||||
|
||||
final response = await http.post(
|
||||
Uri.parse(
|
||||
@@ -59,12 +58,8 @@ class GeminiEgypt extends GetxController {
|
||||
if (response.statusCode == 200) {
|
||||
var responseData = jsonDecode(response.body);
|
||||
// Process the responseData as needed
|
||||
// print(responseData);
|
||||
|
||||
var result = responseData['candidates'][0]['content']['parts'][0]['text'];
|
||||
// print(jsonEncode(result));
|
||||
// print((result));
|
||||
// print(result['dob']);
|
||||
RegExp regex = RegExp(r"```json([^`]*)```");
|
||||
String? jsonString =
|
||||
regex.firstMatch(responseData.toString())?.group(1)?.trim();
|
||||
@@ -72,22 +67,14 @@ class GeminiEgypt extends GetxController {
|
||||
if (jsonString != null) {
|
||||
// Convert the JSON object to a String
|
||||
jsonString = jsonEncode(json.decode(jsonString));
|
||||
// print(jsonString);
|
||||
responseIdCardDriverEgypt1 = jsonString;
|
||||
|
||||
// print(jsonDecode(responseIdCardDriverEgypt1!));
|
||||
responseIdCardDriverEgypt = jsonDecode(responseIdCardDriverEgypt1!);
|
||||
print(responseIdCardDriverEgypt);
|
||||
update();
|
||||
return responseIdCardDriverEgypt;
|
||||
} else {
|
||||
print("JSON string not found");
|
||||
}
|
||||
} else {}
|
||||
|
||||
// Rest of your code...
|
||||
} else {
|
||||
print('Request failed with status: ${response.statusCode}');
|
||||
print('Request failed with status: ${response.body}');
|
||||
}
|
||||
} else {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,10 +218,6 @@ class LoginCaptin extends StatelessWidget {
|
||||
User? user = await authController
|
||||
.signInWithApple();
|
||||
if (user != null) {
|
||||
print(
|
||||
"Successfully signed in: ${user.email}");
|
||||
print(
|
||||
"Successfully signed in: ${user.uid}");
|
||||
box.write(BoxName.driverID, user.uid);
|
||||
box.write(
|
||||
BoxName.emailDriver, user.email);
|
||||
@@ -233,9 +229,7 @@ class LoginCaptin extends StatelessWidget {
|
||||
.toString(),
|
||||
);
|
||||
// Navigate to another screen or perform other actions
|
||||
} else {
|
||||
print("Sign-in failed");
|
||||
}
|
||||
} else {}
|
||||
},
|
||||
kolor: AppColor.primaryColor,
|
||||
)
|
||||
@@ -243,9 +237,6 @@ class LoginCaptin extends StatelessWidget {
|
||||
// MyElevatedButton(
|
||||
// title: 'Sign In by Google'.tr,
|
||||
// onPressed: () async {
|
||||
// print(box.read(BoxName.emailDriver));
|
||||
// print(box.read(BoxName.phoneDriver));
|
||||
// print(box.read(BoxName.phoneVerified));
|
||||
// },
|
||||
// kolor: AppColor.redColor,
|
||||
// ),
|
||||
@@ -277,16 +268,13 @@ class LoginCaptin extends StatelessWidget {
|
||||
// String apiKey = AK.payMobApikey;
|
||||
// String convertedStringN = credentials.c(
|
||||
// credentials.c(credentials.c(apiKey, cs), cC), cn);
|
||||
// print('Converted v: $convertedStringN');
|
||||
//
|
||||
// String retrievedStringS = credentials.r(
|
||||
// credentials.r(
|
||||
// credentials.r(convertedStringN, cn), cC),
|
||||
// cs);
|
||||
// print('Retrieved String: $retrievedStringS');
|
||||
// //
|
||||
// if (retrievedStringS == apiKey) {
|
||||
// print('same');
|
||||
// }
|
||||
// },
|
||||
// icon: const Icon(
|
||||
|
||||
Reference in New Issue
Block a user