fix:增加非空调试
This commit is contained in:
@@ -29,6 +29,7 @@ class LookImagesTool {
|
||||
return LookImagesWidget(
|
||||
listData: listData,
|
||||
currentPage: currentPage,
|
||||
onCallBack: onCallBack,
|
||||
oSSAccessKeyId: oSSAccessKeyId,
|
||||
policy: policy,
|
||||
callback: callback,
|
||||
@@ -241,7 +242,9 @@ class _LookImagesWidgetState extends State<LookImagesWidget> {
|
||||
onTap: () async {
|
||||
Uint8List? imageFile = await editImage(url: listData[currentPage]);
|
||||
String? url = await uint8ListToTempFile(imageFile ?? Uint8List(0));
|
||||
if(widget.onCallBack != null){
|
||||
widget.onCallBack!(url??'');
|
||||
}
|
||||
},
|
||||
child: Icon(Icons.edit, color: Colors.white))),
|
||||
//图片张数指示器
|
||||
|
||||
Reference in New Issue
Block a user