https://github.com/starkdmi/flutter_download_manager
Ready-to-use Flutter widgets to download files
https://github.com/starkdmi/flutter_download_manager
dart downloader flutter http
Last synced: 7 months ago
JSON representation
Ready-to-use Flutter widgets to download files
- Host: GitHub
- URL: https://github.com/starkdmi/flutter_download_manager
- Owner: starkdmi
- License: bsd-3-clause
- Created: 2022-07-07T12:56:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T18:34:25.000Z (about 2 years ago)
- Last Synced: 2024-11-08T02:44:27.755Z (8 months ago)
- Topics: dart, downloader, flutter, http
- Language: Dart
- Homepage: https://pub.dev/packages/isolated_download_manager_flutter
- Size: 65.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Ready-to-use Flutter widgets to download files in isolates using [isolated_download_manager](https://pub.dev/packages/isolated_download_manager) package
## Preview

## Getting started
Include latest version from [pub.dev](https://pub.dev/packages/isolated_download_manager_flutter) to `pubspec.yaml`
## Usage
There are just two widgets:
- **DownloadWidget** - to represent UI of `DownloadRequest` object state.
```dart
DownloadWidget(
request: request,
builder: (context, state, progress, error) {
// UI goes here
}
)
```
[Full example code](example/simple/lib/flutter_request_example.dart)- **DownloadUrlWidget** - simplified version where `DownloadRequest` is stored internally (accessed via builder).
```dart
// 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](example/simple/lib/flutter_url_example.dart)Feature-rich example available at [complex example directory](example/complex)