FLUTTER ECOSYSTEM

starkdmi/download_manager

प्रगति, रद्द करना, अस्थायी रूप से रोकना और पुनः शुरू करने वाला अलग डाउनलोड मैनेजर

डाउनलोड मैनेजर प्रोजेक्ट कवर
Stars
14
Forks
2
अंतिम पुश (UTC)
15 जून 2023
प्रोजेक्ट स्थिति
सक्रिय
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