【发布时间】:2021-08-01 04:32:04
【问题描述】:
如何将Screenshot Package的Uint8List图像数据用ImageGallerySaver package saveFile命令进行保存,需要字符串?
TextButton(
onPressed: () {
_imageFile = null;
screenshotController
.capture()
.then((Uint8List image) async {
//print("Capture Done");
setState(() {
_imageFile = image;
});
final result = await ImageGallerySaver.saveFile();
print("File Saved to Gallery");
}).catchError((onError) {
print(onError);
});
【问题讨论】: