The issue must be coming from your CameraPreview
widget which you have not provided code for. My assumption still is that you are using the Image class to display the image like Image.memory()
or Image.file()
, if that is the case then you need to set the boxFit parameter to something that works for you like: Image.memory(photo, boxFit: BoxFit.contain,)
or Image.memory(photo, boxFit: BoxFit.fitHeight,)
. I cannot help with the exact answer because your code is incomplete but I hope this give you an idea and helps you solve the issue