How to: rotate a selected/set image (Flutter)
问题 I've managed to rotate images to landscape/portrait after selecting them from Image picker (gallery/camera) .. This works fine, and will continue set new images to my desired orientation .. However, I'm trying to use the same method to rotate an already selected/set image and it doesn't work .. Here is the logic I'm using: void _rotateImage(File file) async { print('>>> rotating image'); try { List<int> imageBytes = await file.readAsBytes(); final originalImage = img.decodeImage(imageBytes);