Download images from URL on Flutter Web
const _url = "https://picsum.photos/200";
Future<void> _downloadImage() async {
await WebImageDownloader.downloadImageFromWeb(_url);
}
final uint8List = Uint8List();
Future<void> _downloadImage() async {
await WebImageDownloader.downloadImageFromUInt8List(uInt8List: uint8List);
}
const _url = "https://picsum.photos/200";
Future<void> _downloadImage() async {
await WebImageDownloader.downloadImageFromWeb(_url, imageQuality: 0.5);
}
const _url = "https://picsum.photos/200";
Future<void> _downloadImage() async {
final Map<String, String> headers = {
'authorization': token,
};
await WebImageDownloader.downloadImageFromWeb(_url, headers: headers);
}