Skip to content
This repository has been archived by the owner on Dec 24, 2021. It is now read-only.
/ downlow Public archive

Tiny, Lightwight and Fast file downloads in pure Dart. Supports Full control over the download progress (pause, resume, cancel, and get progress feedback, ..)

Notifications You must be signed in to change notification settings

owlchat/downlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downlow

Tiny, Lightwight and Fast file downloads in pure Dart.

Supports Full control over the download progress (pause, resume, cancel, and get progress feedback)

Usage

A simple usage example:

import 'dart:io';

import 'package:downlow/downlow.dart';

Future<void> main() async {
  final target = File('/tmp/cat.jpg');
  final options = DownloadOptions(
    progressCallback: (current, total) {
      final progress = (current / total) * 100;
      print('Downloading: $progress');
    },
    target: target,
    progressDatabase: InMemoryProgressDatabase(),
  );
  final controller = await download('https://i.imgur.com/z4d4kWk.jpg', options);
  controller.pause(); // to pause the download.
  controller.resume(); // to resume the download.
  controller.cancel(); // to cancel the download.
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

Tiny, Lightwight and Fast file downloads in pure Dart. Supports Full control over the download progress (pause, resume, cancel, and get progress feedback, ..)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages