dio
dio copied to clipboard
Freeze on large file download with dio.download
Issue Info
Info | Value | |
---|---|---|
Platform Name | flutter / android | |
Platform Version | 2.2.3 / api 28 | |
Dio Version | 4.0.4 |
Issue Description
Got freezed on downloading large file (movie file eg. mp4,mkv). It's back when downloading done. User can't press any button on screen until downloading done.
My Code
await _dio.download(model.url, savePath,
onReceiveProgress: (received, total) {
if (total != -1) {
model.progress =
int.parse((received / total * 100).toStringAsFixed(0));
_showNotification(model);
}
})
Probably a duplicate of https://github.com/flutterchina/dio/issues/1328 Try the new build from there please