FLUTTER ECOSYSTEM

starkdmi/download_manager

進行状況、キャンセル、一時停止、再開機能を備えた独立ダウンロードマネージャー

ダウンロードマネージャー のプロジェクト画像
Stars
14
Forks
2
最終プッシュ(UTC)
2023/06/15
プロジェクト状態
公開中
Dmitry Starkov GitHub avatar
GITHUB User

Dmitry Starkov ↗

On-device ML engineer · Apple silicon · audio, video, image · Swift, MLX, CoreML

言語Dart

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 4 件
  • download_task>=1.0.2 <2.0.0
  • http>=0.13.0 <2.0.0
  • lints開発用>=0.1.0 <3.0.0
  • test開発用>=1.16.0 <2.0.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

File download manager based on reusable isolates with progress, cancellation, pause and resume

Features

  • Fully isolated - create any amount of reusable isolates, all handled internally
  • Powerfull - pause, resume, cancel, download queue and many more
  • Listen to updates - realtime progress and failure handling
  • UI - use ready-to-use Flutter widgets (optionally via isolated_download_manager_flutter)
  • Pure Dart - only http dependency

Getting started

Include latest version from pub.dev to pubspec.yaml

Usage

// initialize
await DownloadManager.instance.init(isolates: 3);

// download
final request = DownloadManager.instance.download(url);

// listen to state changes
request.events.listen((event) { ... }

// control the task
request.pause();
request.resume();
request.cancel();

Example full source code available at example's directory

Additional information

For resumable downloads download_task package is used