v2.0.7image_downloader_web
A Flutter plugin for downloading images from URL to user's device. This plugin only works for Flutter web.
45Likes 5.2K30-day downloads160Pub points
Web
hrvojecukman/image_downloader_web open-source repository details.
English project snapshot. Visit GitHub for the latest content.
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);
}
Dependency list 6 items
{"sdk":"flutter"}{"sdk":"flutter"}^1.1.0^1.1.0{"sdk":"flutter"}^2.0.2Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗