搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案