I have a app crash when i\'m picking a image. i\'m using image_picker:0.5.0+7 with any ImageSource it\'s crash the app.
File _fileState;
Future getIm
It seems image_picker documentation has been updated.
You would have to use retrieveLostData
when the app restarts (migrate to AndroidX else you may get a force close error)
Future retrieveLostData() async {
final LostDataResponse response = await ImagePicker.retrieveLostData();
if (response == null) {
return;
}
if (response.file != null) {
setState(() {
if (response.type == RetrieveType.video) {
_handleVideo(response.file);
} else {
_handleImage(response.file);
}
});
} else {
_handleError(response.exception);
}
}