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 } )
-
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 } );
The controller allows to access task outside of widget builder's body. Full example code
Feature-rich example available at complex example directory