I am using image_picker: ^0.6.7+7 to select files from Gallery. when select image >> Image picker saves image automatically to cache folder. this makes high storage usage. Question : how not to saved file to storage,
my code ::
var picker = ImagePicker();
picker
// .getImage(source: ImageSource.gallery, imageQuality:100,maxHeight: 200,maxWidth: 200)
.getImage(source: ImageSource.gallery, imageQuality: 30)
.then((PickedFile image) {
callbackPicker(image);
});
The only way to remove the temporary file, is to remove the reference to it. Kind of like this image = null. If you need to use the image in other parts of your app, then load it into memory before nullify out the image file reference.