搜索插件、代码仓与 APP 分类

插件详情v0.2.0

flowder

持久化文件下载管理器,可开始、暂停、恢复和取消您的下载。

近 30 天下载
74
喜欢数
130
Pub 分数
60

安装插件

flutter pub add flowder

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Flowder 是一个用于 Flutter 的持久化文件下载管理器,可让用户轻松启动、暂停、恢复和取消下载。它以可靠性为设计目标,确保即使应用关闭或设备重启,下载也能继续进行。该包可无缝集成到需要强大后台下载功能的应用中,支持可恢复的传输和高效的资源管理。它非常适合视频流媒体、文档检索或应用更新系统等媒体密集型应用。Flowder 能够处理文件完整性校验和进度跟踪,因此适用于生产环境。

适合场景

  • 后台文件下载
  • 应用重启后的可恢复下载
  • 媒体内容离线缓存
  • 应用更新下载
  • 大文件传输
  • 离线数据同步

主要特点

  • 持久下载状态
  • 支持暂停/恢复/取消操作
  • 后台下载执行
  • 文件完整性验证
  • 进度跟踪 API
  • 跨平台兼容性

适合对象

  • 需要可靠后台下载的应用
  • 基于媒体或文档的应用程序
  • 需要离线访问的应用程序
  • 开发更新或同步功能的开发者
  • 需要大量文件传输的项目

使用建议

  • 需要正确的存储访问权限
  • 在 iOS 上可能需要额外配置以支持后台执行
  • 有限的平台特定自定义选项
  • 依赖外部依赖项以实现完整功能
  • 不适用于实时流媒体

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flowder

Handle your file downloads status in a more simple and easy way :heartbeat:

pubspec.yaml

dependencies:

flowder: ^0.2.0

Examples

Basic

To start using flowder, is required to do the following setup.


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.


core.download(url, downloaderUtils);

To resume a download.


core.resume();

To cancel a download.


core.cancel();

To pause a download.


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.

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目