0 purchases
web image downloader
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
copied to clipboard
Usage #
First, you just have to import the package using:
import 'package:web_image_downloader/web_image_downloader.dart';
copied to clipboard
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'),
),
copied to clipboard
Finally , call the function as below, by passing the global key and a required fileName.
await WebImageDownloader.downloadImage(globalKey, 'image.png');
copied to clipboard
Contributing #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.