解绑后通知所分享人员 日报周报月报说明弹窗点击范围 注销账号
This commit is contained in:
@@ -1499,7 +1499,8 @@ Future<String?> showMessageConfirmDialog({
|
||||
children: [
|
||||
TextSpan(
|
||||
text: '有一条新的设备分享消息'.tr,
|
||||
style: TextStyle(color: Colors.red, fontSize: 26.rpx)),
|
||||
style:
|
||||
TextStyle(color: Colors.black, fontSize: 26.rpx)),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1558,3 +1559,79 @@ Future<String?> showMessageConfirmDialog({
|
||||
barrierDismissible: true,
|
||||
);
|
||||
}
|
||||
|
||||
Future<String?> showUnShareMessageDialog({
|
||||
required String title,
|
||||
required String mac,
|
||||
}) async {
|
||||
return await Get.dialog<String>(
|
||||
FrostedDialog(
|
||||
blurSigma: 3.0,
|
||||
child: Container(
|
||||
width: 520.rpx,
|
||||
height: 460.rpx,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
left: 45.rpx, right: 45.rpx, top: 90.rpx, bottom: 60.rpx),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(fontSize: 30.rpx, color: Colors.black),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
style: TextStyle(fontSize: 26.rpx, color: Colors.black87),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: mac,
|
||||
style: TextStyle(color: Colors.blue, fontSize: 26.rpx)),
|
||||
TextSpan(
|
||||
text: " " + '设备已被用户解绑,将取消当前分享!'.tr,
|
||||
style:
|
||||
TextStyle(color: Colors.black, fontSize: 26.rpx)),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
CustomCard(
|
||||
borderRadius: 16.rpx,
|
||||
onTap: () {
|
||||
Get.back(result: 'confirm');
|
||||
},
|
||||
colors: [
|
||||
Color(0xFF1592AA),
|
||||
Color(0XFF0C83A7),
|
||||
Color(0XFF006FA3)
|
||||
],
|
||||
child: Container(
|
||||
width: 200.rpx,
|
||||
height: 90.rpx,
|
||||
alignment: Alignment.center,
|
||||
child: Text(
|
||||
'确定'.tr,
|
||||
style: TextStyle(fontSize: 26.rpx, color: Colors.white),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
barrierDismissible: true,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user