From 4ab9a5ad1836f66c112d21301056b306d94c9f7c Mon Sep 17 00:00:00 2001 From: wuxinglong Date: Mon, 17 Nov 2025 15:54:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=9A=B4=E9=9C=B2=E5=87=BA=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=9B=BE=E7=89=87=E5=8A=9F=E8=83=BD=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/upload_image/look_images_widget.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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,