image_downloader_web 2.0.6 copy "image_downloader_web: ^2.0.6" to clipboard
image_downloader_web: ^2.0.6 copied to clipboard

Platformweb

A Flutter plugin for downloading images from URL to user's device. This plugin only works for Flutter web.

Image downloader for web #

Download images from URL on Flutter Web

Buy Me A Coffee

Usage example

Download image on webb #


const _url = "https://picsum.photos/200";

Future<void> _downloadImage() async {
  await WebImageDownloader.downloadImageFromWeb(_url);
}

Download image on web from UInt8List #


final uint8List = Uint8List();

Future<void> _downloadImage() async {
  await WebImageDownloader.downloadImageFromUInt8List(uInt8List: uint8List);
}

Download image with reduced quality #


const _url = "https://picsum.photos/200";

Future<void> _downloadImage() async {
  await WebImageDownloader.downloadImageFromWeb(_url, imageQuality: 0.5);
}

Download image with custom headers #


const _url = "https://picsum.photos/200";

Future<void> _downloadImage() async {
  final Map<String, String> headers = {
    'authorization': token,
  };
  await WebImageDownloader.downloadImageFromWeb(_url, headers: headers);
}
45
likes
150
points
13.5k
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for downloading images from URL to user's device. This plugin only works for Flutter web.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, http, universal_html

More

Packages that depend on image_downloader_web