This commit is contained in:
Hamza-Ayed
2024-07-21 09:05:56 +03:00
parent 3bfbe1793d
commit 9b9e5f29f5
9 changed files with 379 additions and 370 deletions

View File

@@ -14,6 +14,7 @@ class AC {
var res = await CRUD().get(link: AppLink.getApiKey, payload: {});
var decod = jsonDecode(res);
// print(decod);
Map<String, dynamic> jsonData = {};
for (var i = 0; i < decod['message'].length; i++) {
String h = decod['message'][i]['hashed_key'].toString();

View File

@@ -43,13 +43,7 @@ class CarRegistrationRecognizerController extends GetxController {
// Crop the image
croppedFile = await ImageCropper().cropImage(
sourcePath: image!.path,
aspectRatioPresets: [
CropAspectRatioPreset.square,
CropAspectRatioPreset.ratio3x2,
CropAspectRatioPreset.original,
CropAspectRatioPreset.ratio4x3,
CropAspectRatioPreset.ratio16x9
],
//
uiSettings: [
AndroidUiSettings(
toolbarTitle: 'Cropper'.tr,

View File

@@ -196,6 +196,9 @@ class CRUD {
'Authorization': 'Bearer ${AK.secretKeyStripe}',
},
);
// Log.print('response: ${response.request}');
// Log.print('response: ${response.body}');
// Log.print('response: ${payload}');
if (response.statusCode == 200) {
return response.body;
} else {}

View File

@@ -407,13 +407,6 @@ class AI extends GetxController {
// Crop the image
croppedFile = await ImageCropper().cropImage(
sourcePath: image!.path,
aspectRatioPresets: [
CropAspectRatioPreset.square,
CropAspectRatioPreset.ratio3x2,
CropAspectRatioPreset.original,
CropAspectRatioPreset.ratio4x3,
CropAspectRatioPreset.ratio16x9
],
uiSettings: [
AndroidUiSettings(
toolbarTitle: 'Cropper'.tr,

View File

@@ -112,13 +112,6 @@ class ImageController extends GetxController {
croppedFile = await ImageCropper().cropImage(
sourcePath: image!.path,
aspectRatioPresets: [
CropAspectRatioPreset.square,
CropAspectRatioPreset.ratio3x2,
CropAspectRatioPreset.original,
CropAspectRatioPreset.ratio4x3,
CropAspectRatioPreset.ratio16x9
],
uiSettings: [
AndroidUiSettings(
toolbarTitle: 'Cropper'.tr,
@@ -291,13 +284,6 @@ class ImageController extends GetxController {
croppedFile = await ImageCropper().cropImage(
sourcePath: image!.path,
aspectRatioPresets: [
CropAspectRatioPreset.square,
CropAspectRatioPreset.ratio3x2,
CropAspectRatioPreset.original,
CropAspectRatioPreset.ratio4x3,
CropAspectRatioPreset.ratio16x9
],
uiSettings: [
AndroidUiSettings(
toolbarTitle: 'Cropper'.tr,

View File

@@ -63,7 +63,7 @@ void main() async {
await GetStorage.init();
await AC().gAK();
// await AC().gAK();
Stripe.publishableKey = AK.publishableKeyStripe;