feat:暴露出编辑图片功能是否显示
This commit is contained in:
@@ -16,6 +16,7 @@ class LookImagesTool {
|
|||||||
void Function(String)? onCallBack,
|
void Function(String)? onCallBack,
|
||||||
String? oSSAccessKeyId,
|
String? oSSAccessKeyId,
|
||||||
Function? callBack,
|
Function? callBack,
|
||||||
|
bool? isShowEdit,
|
||||||
String? policy,
|
String? policy,
|
||||||
String? callback,
|
String? callback,
|
||||||
String? signature,
|
String? signature,
|
||||||
@@ -50,6 +51,7 @@ class LookImagesWidget extends StatefulWidget {
|
|||||||
final String? ossDirectory;
|
final String? ossDirectory;
|
||||||
final String? ossHost;
|
final String? ossHost;
|
||||||
final void Function(String)? onCallBack;
|
final void Function(String)? onCallBack;
|
||||||
|
final bool? isShowEdit;
|
||||||
|
|
||||||
const LookImagesWidget({
|
const LookImagesWidget({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -62,6 +64,7 @@ class LookImagesWidget extends StatefulWidget {
|
|||||||
this.ossDirectory,
|
this.ossDirectory,
|
||||||
this.ossHost,
|
this.ossHost,
|
||||||
this.onCallBack,
|
this.onCallBack,
|
||||||
|
this.isShowEdit,
|
||||||
});
|
});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -246,7 +249,9 @@ class _LookImagesWidgetState extends State<LookImagesWidget> {
|
|||||||
widget.onCallBack!(url??'');
|
widget.onCallBack!(url??'');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Icon(Icons.edit, color: Colors.white))),
|
child: Visibility(
|
||||||
|
visible: widget.isShowEdit??false,
|
||||||
|
child: Icon(Icons.edit, color: Colors.white)))),
|
||||||
//图片张数指示器
|
//图片张数指示器
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user