lundi 7 juin 2021

Flutter Web invoke Save As dialog

In my Flutter app, I create an image as a .png formatted Uint8List. On Android, I can save it to the Gallery:

Uint8List pngBytes = await getPng(pinPoints, artLines, artFields, newLine, modeIndex);
final result = await ImageGallerySaver.saveImage(pngBytes, name: 'Baertling test', quality: 100);

When compiling for the web, I want the user to be able to save the image as a .png file using the standard Save As dialog.

Is that possible? How?

Aucun commentaire:

Enregistrer un commentaire