download_task
1.0.4, released 3 years ago by starkdev.org
Resumable HTTP download request with pause, resume, cancel, and realtime progress.
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.
- flutter_downloader
Plugin to create and manage background download tasks on Android and iOS.
80Compare - file_saver_ffi
Save any file type to device storage, gallery, or a user‑chosen folder with progress and conflict handling.
76Compare - resumable_downloader
Reliable foreground file downloads with multipart ranges, durable resume, and integrity checks.
74Compare
Works with
Packages commonly used together with download_task: ones it builds on, ones built on it, and its own family.