flutter_downloader icon indicating copy to clipboard operation
flutter_downloader copied to clipboard

Feature : Treat multiple downlaods as a single unit of work

Open georgepapas opened this issue 5 years ago • 6 comments

We have a use case where we'd like to treat multiple downloads as a single unit of work and report back progress based on all the downloads in that unit, rather than individually.

Perhaps adding an ability to enqueue with a group id and query, retrieve using this group id, as well as report progress by the group id would be a useful feature for others as well.

So, for example, if have downloads A,B and C. Then I'd like to be able to enqueue them all and report progress back as each one completes, so my progress will look like this:

A finishes, B and C still running -> Status(running, 33 percent)
A, B finished, C still running -> Status(running, 66, percent)
A,B,C all complete - Status(complete, 100 percent)

georgepapas avatar Jun 05 '19 07:06 georgepapas

I'm also interested in this, in my use case I have hundreds of files to download and I'm interested in updating the UI only when all you have completed. I've tried to play around querying each DownloadTask but that's not a very clean way of doing it. Any useful tips?

jpcarreira avatar Feb 24 '20 19:02 jpcarreira

I'd also like to have something like this and am especially interested in having the generated notification be grouped and show the total progress for this group, something like:

  • enqueing task A, B, C for group id 1, name 'One Group'
  • display notification: Downloading One Group (8%)

nioncode avatar Apr 07 '20 18:04 nioncode

awesome feature :)

yelkamel avatar Aug 17 '20 14:08 yelkamel

I also have to implement the same functionality in my next project, did any one get answer here?

Sandeepbandral avatar Jan 15 '21 07:01 Sandeepbandral

any news?

yasin-sicpa avatar Jun 24 '21 10:06 yasin-sicpa

I am very open to PRs :)

bartekpacia avatar Sep 09 '22 17:09 bartekpacia