Skip to content
pubscout

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.

$ flutter pub add flutter_file_downloader
Source repository

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.