flutter_file_downloader
2.1.1, released 11 months ago by odeh-bros.com
An Android plugin to download single or multiple files to public downloads or app directories.
What it does
Downloads files directly to Android's public downloads or app-specific storage with progress notifications and callbacks. Supports bulk downloads, parallel execution limits, cancellation, and custom headers. It handles Android 10+ storage restrictions without requiring complex native configuration.
AI-written summary of version 2.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to download files into Android's public Downloads directory or app directory with progress tracking.
- You want built-in support for system download notifications and parallel/sequential bulk downloading on Android.
Skip it when
- You need iOS, web, or desktop support (this package only supports Android).
- You only need local file path access rather than downloading files over HTTP/HTTPS.
Strengths
- Supports parallel and batch downloads with configurable limits.
- Provides download cancellation and progress callbacks.
- Handles Android-specific storage and notification permissions conveniently.
Weaknesses
- Android-only; does not work on iOS, web, or desktop platforms.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires adding INTERNET and WRITE_EXTERNAL_STORAGE permissions in AndroidManifest.xml (and DOWNLOAD_WITHOUT_NOTIFICATION if disabling notifications).
FileDownloader.downloadFile(
url: 'https://example.com/file.jpg',
name: 'file.jpg',
onProgress: (String? fileName, double progress) {
print('Progress: $progress');
},
onDownloadCompleted: (String path) {
print('Downloaded to: $path');
},
onDownloadError: (String error) {
print('Error: $error');
},
);Alternatives
Packages that do the same job and could replace flutter_file_downloader.
- flutter_downloader
Plugin to create and manage background download tasks on Android and iOS.
80Compare - path_provider
Provides Flutter APIs to locate common filesystem directories on Android, iOS, macOS, Linux and Windows.
93Compare - flutter_archive
Create and extract ZIP archive files in Android, iOS and macOS.
89Compare - file_selector
Flutter plugin for opening, saving, and selecting directories with native file dialogs
83Compare