dio icon indicating copy to clipboard operation
dio copied to clipboard

Freeze on large file download with dio.download

Open YaWaiAung opened this issue 2 years ago • 1 comments

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);
        }
      }) 

YaWaiAung avatar Dec 25 '21 13:12 YaWaiAung

Probably a duplicate of https://github.com/flutterchina/dio/issues/1328 Try the new build from there please

kuhnroyal avatar Dec 26 '21 14:12 kuhnroyal