This commit is contained in:
Hamza-Ayed
2024-05-19 18:43:45 +03:00
parent 83f7f7ab3c
commit e755cea0ae
64 changed files with 382 additions and 296 deletions

View File

@@ -19,7 +19,13 @@ class ImageController extends GetxController {
final picker = ImagePicker();
var image;
choosImage(String link, String imageType) async {
final pickedImage = await picker.pickImage(source: ImageSource.gallery);
final pickedImage = await picker.pickImage(
source: ImageSource.camera,
preferredCameraDevice: CameraDevice.rear,
// maxHeight: Get.height * .3,
// maxWidth: Get.width * .9,
// imageQuality: 100,
);
image = File(pickedImage!.path);
croppedFile = await ImageCropper().cropImage(