Image download to gallery

Add package

gallery_saver: ^2.3.2

import package

import 'package:gallery_saver/gallery_saver.dart';

inside onpress

await GallerySaver.saveImage(widget.images[pagePosition].imageUrl);
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
  content: Text("Downloaded image to your gallery"),
));


Sign In or Register to comment.