image_downloader_web

Creator: coderz1093

Last updated:

Add to Cart

Description:

image downloader web

Image downloader for web #
Download images from URL on Flutter Web


Download image on webb #

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

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

copied to clipboard

Download image on web from UInt8List #

final uint8List = Uint8List();

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

copied to clipboard

Download image with reduced quality #

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

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

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);
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.