Search packages, repositories and app categories

image_downloader_web cover
Package detailsv2.0.7

image_downloader_web

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

Web
30-day downloads
5.2K
Likes
45
Pub points
160

Install package

flutter pub add image_downloader_web

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter plugin designed specifically for web applications, enabling users to download images from a URL directly to their device. It integrates seamlessly with Flutter's web platform, providing a simple API to trigger downloads without requiring native code. The plugin is ideal for web-based apps that display or generate images and need to offer a 'save image' functionality. It supports standard web browsers and relies on browser-native download mechanisms.

Use cases

  • Downloading user-generated images
  • Saving profile pictures from URLs
  • Exporting visual content from web apps
  • Enabling offline access to images
  • Integrating image export in web dashboards

Key features

  • Web-only compatibility
  • Simple URL-based download
  • Browser-native download integration
  • No additional permissions required
  • Lightweight and easy to implement

Suitable for

  • Web-based image galleries
  • Educational web apps
  • E-commerce product image saving
  • Content management systems
  • Design tools with export features

Considerations

  • Only works on web platforms
  • Relies on browser download behavior
  • No progress tracking for large files
  • Limited customization of download dialog
  • Requires secure HTTPS URLs for most browsers

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Image downloader for web

Download images from URL on Flutter Web

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);
}

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.