Search packages, repositories and app categories

GitHub repositorystarkdmi/download_manager

download_manager

Isolated download manager with progress, cancellation, pause and resume

download_manager project cover
Stars
14
Forks
2
Last push (UTC)
Jun 15, 2023
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

File download manager based on reusable isolates with progress, cancellation, pause and resume

Features

  • Fully isolated - create any amount of reusable isolates, all handled internally
  • Powerfull - pause, resume, cancel, download queue and many more
  • Listen to updates - realtime progress and failure handling
  • UI - use ready-to-use Flutter widgets (optionally via isolated_download_manager_flutter)
  • Pure Dart - only http dependency

Getting started

Include latest version from pub.dev to pubspec.yaml

Usage

// initialize
await DownloadManager.instance.init(isolates: 3);

// download
final request = DownloadManager.instance.download(url);

// listen to state changes
request.events.listen((event) { ... }

// control the task
request.pause();
request.resume();
request.cancel();

Example full source code available at example's directory

Additional information

For resumable downloads download_task package is used

Dmitry Starkov GitHub avatar
GitHub author

Dmitry Starkov ↗

On-device ML engineer · Apple silicon · audio, video, image · Swift, MLX, CoreML

LanguagesDart

Categories

Packages published by this repository

Dependencies used

Dependency list 4 items

  • download_task>=1.0.2 <2.0.0
  • http>=0.13.0 <2.0.0
  • lintsDevelopment>=0.1.0 <3.0.0
  • testDevelopment>=1.16.0 <2.0.0

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗