flutter_downloader library

Provides the capability of creating and managing background download tasks.

This plugin depends on native APIs to run background tasks (WorkManager on Android and NSURLSessionDownloadTask on iOS).

All information about download tasks is saved in an SQLite database. It gives a Flutter application benefit of either getting rid of managing task information manually or querying task data with SQL statements easily.


Encapsulates all information of a single download task.
Provides access to all functions of the plugin in a single place.


Defines a set of possible states which a DownloadTask can be in.


DownloadCallback = void Function(String id, int status, int progress)
Signature for a function which is called when the download state of a task with id changes.

Exceptions / Errors

Thrown when something bad happens on the Dart side of the flutter_downloader plugin.