image_crop
image_crop copied to clipboard
Image is not displayed when reselecting previously cropped image
Hi, I use your lib for crop image, but I encountering an error, which image is not displayed when reselecting previously cropped image. I pass an image file to image crop screen, then I crop it, after I reselect it (origin image) from the gallery, then it do not display on screen. Step:
- Select an image from the gallery.
- Cover to file, pass it to crop screen.
- Crop it, and back to before screen.
- Select previously an image from the gallery.
- Cover to file, pass it to crop screen ==> image do not display (I attach file).
.
And this is my code for crop image screen (I modified from your example) https://drive.google.com/file/d/16i3bn5xUELg23mw3UOCOqdN88JHaHOb8/view?usp=sharing
Anyone helps, thanks!
Same issue here!
I have same issue
Same issue here!
I think the problem is in the file_picker plugin. I tried to get the file via image_picker and the problem went away.
XFile file = await ImagePicker().pickImage(source: ImageSource.gallery);
Try image.evict()
Same issue here!
Try image.evict()
I have same issue, I use photo_manager library
with this code, sloved problem
in crop file, in didChangeDependencies() and didUpdateWidget() add this line.
thanks