downloadable 1.0.1 icon indicating copy to clipboard operation
downloadable: ^1.0.1 copied to clipboard

downloadables

example/main.dart

import 'package:downloadable/downloadable.dart';

main() async {
  var tempFolder = '';

  var downloadable = Downloadable(
    downloadLink: 'www.example.com/files/downloadable.file',
    fileAddress: tempFolder + '/files/downloadable.file',
  );

  var downloaded = await downloadable.downloaded;

  if (!downloaded) {
    var onDownloadComplete = () {
      print('download complete!');
    };

    var progressStream = downloadable.download(onDownloadComplete);

    progressStream.listen((p) {
      print('${p * 100}%...');
    });
  }
}
1
likes
110
pub points
0%
popularity

Publisher

unverified uploader

downloadables

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

dio

More

Packages that depend on downloadable