Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crdzbird/flowder
https://github.com/crdzbird/flowder
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/crdzbird/flowder
- Owner: Crdzbird
- License: bsd-3-clause
- Created: 2021-05-23T23:01:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T11:23:49.000Z (about 1 year ago)
- Last Synced: 2024-11-03T16:38:07.813Z (2 months ago)
- Language: C++
- Size: 1.37 MB
- Stars: 46
- Watchers: 3
- Forks: 63
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flowder
Handle your file downloads status in a more simple and easy way :heartbeat:
### pubspec.yaml
```yaml
dependencies:
flowder: ^0.2.0
```
## Examples
### Basic
To start using flowder, is required to do the following setup.
```dart
fina downloaderUtils = DownloaderUtils(
progressCallback: (current, total) {
final progress = (current / total) * 100;
print('Downloading: $progress');
},
file: File('$path_to_store_file/200MB.zip'),
progress: ProgressImplementation(),
onDone: () => print('Download done'),
deleteOnCancel: true,
);
final core = await Flowder.download(
'http://ipv4.download.thinkbroadband.com/200MB.zip',
downloaderUtils);
```
To *start* a new download.
```dart
core.download(url, downloaderUtils);
```
To *resume* a download.
```dart
core.resume();
```
To *cancel* a download.
```dart
core.cancel();
```
To *pause* a download.
```dart
core.pause();
```
### Advanced
If you require an example using internet connection checker, please go to the folder **advanced example**.
The stack used is:- get_it
- injectable
- riverpod
- path_provider
- connectivity_plus (this is the best plugin to check internet connection, the others were buggy :cry:
- dio.
- Permission_handler
### Currently done:
- [x] Download states.
- [x] Handle multiple downloader.
- [x] Advanced example using internet connection checker.
### Contributing
All contributions are welcome!
If you like this project then please click on the :star2: it'll be appreciated or if you wanna add more epic stuff you can submite your pull request and it'll be gladly accepted :ok_man:
or if you have an idea please let me know with a new issue.