[Flutter] How do I crop the image based on the overlay on top of Camera function?
I set the image to this:
final image = await _controller.takePicture();
I want to crop the image based on the rectangle overlay.
currently I assign the model to:
model.img = image.path;
but instead of the image, I want to crop it first, then assign to the cropped image path.
For this you can use copyCrop function. Here is an example
In the above code, replace ... with your actual values for the cropping rectangle.