The pro_image_editor is a Flutter widget designed for image editing within your application. It provides a flexible and convenient way to integrate image editing capabilities into your Flutter project.
When receiving a photo file through the image picker, and then getting the bytes through the pro_image_editor file, and then repeating the same process of receiving a photo through the image picker and getting the bytes through the pro_image_editor file,
there is a phenomenon where the previous bytes remain as residue.
The sequence is:
1) _pickedFile => Uint8List of the first photo received from the gallery
2) bytes => the value coming from onImageEditingComplete
3) _pickedFile changed => the bytes value received as a global variable
4) _pickedFile => Uint8List of a different photo
5) bytes => the value coming from onImageEditingComplete (same as the bytes from step 2)
6) _pickedFile changed => the bytes value received as a global variable (same as the bytes from step 2)
Package Version
4.2.7
Flutter Version
3.19.5
Platforms
Android, iOS
How to reproduce?
When receiving a photo file through the image picker, and then getting the bytes through the pro_image_editor file, and then repeating the same process of receiving a photo through the image picker and getting the bytes through the pro_image_editor file, there is a phenomenon where the previous bytes remain as residue.
The sequence is:
1) _pickedFile => Uint8List of the first photo received from the gallery 2) bytes => the value coming from onImageEditingComplete 3) _pickedFile changed => the bytes value received as a global variable 4) _pickedFile => Uint8List of a different photo 5) bytes => the value coming from onImageEditingComplete (same as the bytes from step 2) 6) _pickedFile changed => the bytes value received as a global variable (same as the bytes from step 2)
Logs (optional)
No response
Example code (optional)
Device Model (optional)
No response