I wish to store images in the gallery. However, this functionality only seems to work during debugging when I build the APK and test it on my phone. Once I install the APK without debugging, the image-saving feature no longer functions. It's important to note that I already have the necessary permissions to access local storage.The permissions
I tested it on two versions of Android 12 and 13
var image = await boundary.toImage();
var byteData = await image.toByteData(format: ui.ImageByteFormat.png);
var ref = FFAppState().FrameRef;
final name = 'cl1box1_' + ref;
await ImageGallerySaver.saveImage(byteData!.buffer.asUint8List(),
name: name);
Try this
use this below plugin
device_info_plus: ^9.0.2
permission_handler: ^10.4.3
image_gallery_saver: ^2.0.3
add this code on AndroidManifest.xml