Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 8 hours 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T18:34:25.000Z (over 1 year ago)
- Last Synced: 2023-08-09T13:47:18.384Z (about 1 year ago)
- Topics: dart, downloader, flutter, http
- Language: Dart
- Homepage: https://pub.dev/packages/isolated_download_manager_flutter
- Size: 65.4 KB
- Stars: 2
- 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
![Flutter Download Manager - iPhone 14 Pro Max](https://user-images.githubusercontent.com/21260939/193834026-52c81596-cdbd-40cd-a487-ba6d8dfb2edd.png)
## 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)