Closed wonsuyon closed 5 years ago
can't catch 404 the app crashes
It can be implemented in your application.
imageId = await ImageDownloader.downloadImage("https://raw.githubusercontent.com/wiki/ko2ic/image_downloader/images/flutter_no.png").catchError((error) {
print(error);
}).timeout(Duration(seconds: 10), onTimeout: () {
print("timeout");
});
In addition, added error handling in v13.0.2.
Thank you for your quick update. The dart timeout() gives us a good timeout except when the permission dialog appears. and the app doesn't crash. we can catch the error.
I've tested on android. and need a detection, timeout for enhancement, thanks.