Last updated:
0 purchases
isolated download manager flutter
Ready-to-use Flutter widgets to download files in isolates using isolated_download_manager package
Preview #
Getting started #
Include latest version from pub.dev to pubspec.yaml
Usage #
There are just two widgets:
DownloadWidget - to represent UI of DownloadRequest object state.
DownloadWidget(
request: request,
builder: (context, state, progress, error) {
// UI goes here
}
)
copied to clipboard
Full example code
DownloadUrlWidget - simplified version where DownloadRequest is stored internally (accessed via builder).
// using just an url
DownloadUrlWidget(
url: url,
path: path,
controller: controller, // optional
builder: (context, controller, state, progress, error, request) {
// UI goes here
}
);
copied to clipboard
The controller allows to access task outside of widget builder's body.
Full example code
Feature-rich example available at complex example directory
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.