web_image_downloader 1.0.1 copy "web_image_downloader: ^1.0.1" to clipboard
web_image_downloader: ^1.0.1 copied to clipboard

Platformweb

Use this package to download / save images to your computer locally, when run in web.

WebImageDownloader #

Use this package to download / save images to your computer locally, when run in web.

Getting started #

Add this to your package's pubspec.yaml file

dependencies:
  web_image_downloader: ^1.0.1

Usage #

First, you just have to import the package using:

import 'package:web_image_downloader/web_image_downloader.dart';

Then , wrap the required [image] widget with RepaintBoundary widget and pass a global key to it.

  RepaintBoundary(
      key: globalKey,
      child: Image.asset('assets/image.png'),
    ),

Finally , call the function as below, by passing the global key and a required fileName.

  await WebImageDownloader.downloadImage(globalKey, 'image.png');

Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

1
likes
140
pub points
55%
popularity

Publisher

verified publishersivaprasadnk.dev

Use this package to download / save images to your computer locally, when run in web.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on web_image_downloader