feat:暴露出编辑图片功能是否显示
This commit is contained in:
@@ -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<LookImagesWidget> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user