パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト