分享设备用户列表
This commit is contained in:
@@ -379,24 +379,41 @@ var returnIconButtom = IconButton(
|
||||
icon: Icon(Icons.navigate_before, size: 60.rpx),
|
||||
);
|
||||
|
||||
var returnIconButtomNew = ClickableContainer(
|
||||
// var returnIconButtomNew = ClickableContainer(
|
||||
// backgroundColor: Colors.transparent,
|
||||
// highlightColor: Colors.transparent,
|
||||
// padding: EdgeInsets.fromLTRB(20.rpx, 20.rpx, 20.rpx, 20.rpx),
|
||||
// onTap: () => Get.back(),
|
||||
// child: Container(
|
||||
// // height: 42.rpx,
|
||||
// // width: 42.rpx,
|
||||
// child: SvgPicture.asset(
|
||||
// 'assets/img/icon/return_buttom.svg',
|
||||
// width: 42.rpx,
|
||||
// height: 42.rpx,
|
||||
// ),
|
||||
// // SvgPicture.asset(
|
||||
// // 'assets/img/icon/expand.svg',
|
||||
// // color: Colors.white,
|
||||
// // )
|
||||
// ));
|
||||
|
||||
Widget returnIconButtomNew({VoidCallback? onBack}) {
|
||||
return ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
highlightColor: Colors.transparent,
|
||||
padding: EdgeInsets.fromLTRB(20.rpx, 20.rpx, 20.rpx, 20.rpx),
|
||||
onTap: () => Get.back(),
|
||||
child: Container(
|
||||
// height: 42.rpx,
|
||||
// width: 42.rpx,
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/return_buttom.svg',
|
||||
width: 42.rpx,
|
||||
height: 42.rpx,
|
||||
),
|
||||
// SvgPicture.asset(
|
||||
// 'assets/img/icon/expand.svg',
|
||||
// color: Colors.white,
|
||||
// )
|
||||
));
|
||||
onTap: () {
|
||||
if (onBack != null) onBack(); // 执行回调
|
||||
Get.back(); // 返回
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
'assets/img/icon/return_buttom.svg',
|
||||
width: 42.rpx,
|
||||
height: 42.rpx,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// IconButton(
|
||||
// padding: EdgeInsets.zero, // 去除默认 padding
|
||||
|
||||
Reference in New Issue
Block a user