Skip to content
pubscout

download_task

1.0.4, released 3 years ago by starkdev.org

Resumable HTTP download request with pause, resume, cancel, and realtime progress.

$ flutter pub add download_task
Source repository

What it does

Allows you to perform HTTP downloads with capabilities to pause, resume, and cancel requests. Provides realtime progress updates and error handling through a stream interface.

AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to download files via HTTP with pause and resume capabilities.
  • You want a pure Dart solution with minimal dependencies for file downloading.
  • You need to track realtime progress and handle failures during downloads.

Skip it when

  • You need a comprehensive networking client for general API requests (e.g., Dio).
  • You require advanced queue management or background download services not covered by simple streams.

Strengths

  • Supports pause, resume, and cancel operations.
  • Realtime progress updates and error handling.
  • Pure Dart with only the http dependency.

Weaknesses

  • Limited to file downloading and lacks general HTTP client features.
  • No documentation on platform-specific background download limitations.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1

not documented

final task = await DownloadTask.download(url, File("image.webp"));
task.events.listen((event) {});
task.pause();
task.resume();
task.cancel();

Alternatives

Packages that do the same job and could replace download_task.

Works with

Packages commonly used together with download_task: ones it builds on, ones built on it, and its own family.