diff --git a/lib/upload_image/look_images_widget.dart b/lib/upload_image/look_images_widget.dart index 2f2f56a..5f8463c 100644 --- a/lib/upload_image/look_images_widget.dart +++ b/lib/upload_image/look_images_widget.dart @@ -16,6 +16,7 @@ class LookImagesTool { void Function(String)? onCallBack, String? oSSAccessKeyId, Function? callBack, + bool? isShowEdit, String? policy, String? callback, String? signature, @@ -50,6 +51,7 @@ class LookImagesWidget extends StatefulWidget { final String? ossDirectory; final String? ossHost; final void Function(String)? onCallBack; + final bool? isShowEdit; const LookImagesWidget({ super.key, @@ -62,6 +64,7 @@ class LookImagesWidget extends StatefulWidget { this.ossDirectory, this.ossHost, this.onCallBack, + this.isShowEdit, }); @override @@ -246,7 +249,9 @@ class _LookImagesWidgetState extends State { widget.onCallBack!(url??''); } }, - child: Icon(Icons.edit, color: Colors.white))), + child: Visibility( + visible: widget.isShowEdit??false, + child: Icon(Icons.edit, color: Colors.white)))), //图片张数指示器 Positioned( left: 0,