flutter_downloader
flutter_downloader copied to clipboard
Feature : Treat multiple downlaods as a single unit of work
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)
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?
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%)
awesome feature :)
I also have to implement the same functionality in my next project, did any one get answer here?
any news?
I am very open to PRs :)