fix:增加非空调试

This commit is contained in:
2025-11-14 14:12:47 +08:00
parent f2ab06e4bb
commit b086c5c5c9

View File

@@ -29,6 +29,7 @@ class LookImagesTool {
return LookImagesWidget( return LookImagesWidget(
listData: listData, listData: listData,
currentPage: currentPage, currentPage: currentPage,
onCallBack: onCallBack,
oSSAccessKeyId: oSSAccessKeyId, oSSAccessKeyId: oSSAccessKeyId,
policy: policy, policy: policy,
callback: callback, callback: callback,
@@ -241,7 +242,9 @@ class _LookImagesWidgetState extends State<LookImagesWidget> {
onTap: () async { onTap: () async {
Uint8List? imageFile = await editImage(url: listData[currentPage]); Uint8List? imageFile = await editImage(url: listData[currentPage]);
String? url = await uint8ListToTempFile(imageFile ?? Uint8List(0)); String? url = await uint8ListToTempFile(imageFile ?? Uint8List(0));
widget.onCallBack!(url??''); if(widget.onCallBack != null){
widget.onCallBack!(url??'');
}
}, },
child: Icon(Icons.edit, color: Colors.white))), child: Icon(Icons.edit, color: Colors.white))),
//图片张数指示器 //图片张数指示器