Image_gallery_saver dart package not saving image to my gallery

Hi ,
I updated my flutter SDK and gradle too.
However everything working fine . But image gallery saver dart package is not saving image to my gallery.
I am not getting any error in my flutter run .

  1. first check the 2 permission in Android manifest

2 use this method

_saveScreen() async {
RenderRepaintBoundary boundary =
ui.Image image = await boundary.toImage();
ByteData byteData = await image.toByteData(format: ui.ImageByteFormat.png);
final result =
await ImageGallerySaver.saveImage(byteData.buffer.asUint8List());
1 Like