更改分享和解绑消息弹窗
This commit is contained in:
@@ -1469,6 +1469,13 @@ Future<void> showDeleteDeviceConfirmDialog({
|
||||
// }
|
||||
Future<String?> showMessageConfirmDialog({
|
||||
required String title,
|
||||
List<Color> colorsList = const [
|
||||
Color(0xFF1592AA),
|
||||
Color(0XFF0C83A7),
|
||||
Color(0XFF006FA3)
|
||||
],
|
||||
Color backgroundColor = Colors.white,
|
||||
Color textColor = Colors.black,
|
||||
}) async {
|
||||
return await Get.dialog<String>(
|
||||
FrostedDialog(
|
||||
@@ -1477,7 +1484,7 @@ Future<String?> showMessageConfirmDialog({
|
||||
width: 520.rpx,
|
||||
height: 460.rpx,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
color: backgroundColor,
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
child: Padding(
|
||||
@@ -1489,18 +1496,18 @@ Future<String?> showMessageConfirmDialog({
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(fontSize: 30.rpx, color: Colors.black),
|
||||
style: TextStyle(fontSize: 30.rpx, color: textColor),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
style: TextStyle(fontSize: 26.rpx, color: Colors.black87),
|
||||
style: TextStyle(fontSize: 26.rpx, color: Colors.black),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: '有一条新的设备分享消息'.tr,
|
||||
style:
|
||||
TextStyle(color: Colors.black, fontSize: 26.rpx)),
|
||||
TextStyle(color: textColor, fontSize: 26.rpx)),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1514,11 +1521,7 @@ Future<String?> showMessageConfirmDialog({
|
||||
onTap: () {
|
||||
Get.back(result: 'cancel');
|
||||
},
|
||||
colors: [
|
||||
Color(0xFF1592AA),
|
||||
Color(0XFF0C83A7),
|
||||
Color(0XFF006FA3)
|
||||
],
|
||||
colors: colorsList,
|
||||
child: Container(
|
||||
width: 200.rpx,
|
||||
height: 90.rpx,
|
||||
@@ -1534,11 +1537,7 @@ Future<String?> showMessageConfirmDialog({
|
||||
onTap: () {
|
||||
Get.back(result: 'confirm');
|
||||
},
|
||||
colors: [
|
||||
Color(0xFF1592AA),
|
||||
Color(0XFF0C83A7),
|
||||
Color(0XFF006FA3)
|
||||
],
|
||||
colors: colorsList,
|
||||
child: Container(
|
||||
width: 200.rpx,
|
||||
height: 90.rpx,
|
||||
@@ -1563,6 +1562,13 @@ Future<String?> showMessageConfirmDialog({
|
||||
Future<String?> showUnShareMessageDialog({
|
||||
required String title,
|
||||
required String mac,
|
||||
List<Color> colorsList = const [
|
||||
Color(0xFF1592AA),
|
||||
Color(0XFF0C83A7),
|
||||
Color(0XFF006FA3)
|
||||
],
|
||||
Color backgroundColor = Colors.white,
|
||||
Color textColor = Colors.black,
|
||||
}) async {
|
||||
return await Get.dialog<String>(
|
||||
FrostedDialog(
|
||||
@@ -1571,7 +1577,7 @@ Future<String?> showUnShareMessageDialog({
|
||||
width: 520.rpx,
|
||||
height: 460.rpx,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white,
|
||||
color: backgroundColor,
|
||||
borderRadius: BorderRadius.circular(20.0),
|
||||
),
|
||||
child: Padding(
|
||||
@@ -1583,21 +1589,20 @@ Future<String?> showUnShareMessageDialog({
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(fontSize: 30.rpx, color: Colors.black),
|
||||
style: TextStyle(fontSize: 30.rpx, color: textColor),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
RichText(
|
||||
textAlign: TextAlign.center,
|
||||
text: TextSpan(
|
||||
style: TextStyle(fontSize: 26.rpx, color: Colors.black87),
|
||||
style: TextStyle(fontSize: 26.rpx, color: Colors.black),
|
||||
children: [
|
||||
TextSpan(
|
||||
text: mac,
|
||||
style: TextStyle(color: Colors.blue, fontSize: 26.rpx)),
|
||||
TextSpan(
|
||||
text: " " + '设备已被用户解绑,将取消当前分享!'.tr,
|
||||
style:
|
||||
TextStyle(color: Colors.black, fontSize: 26.rpx)),
|
||||
style: TextStyle(color: textColor, fontSize: 26.rpx)),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -1610,11 +1615,7 @@ Future<String?> showUnShareMessageDialog({
|
||||
onTap: () {
|
||||
Get.back(result: 'confirm');
|
||||
},
|
||||
colors: [
|
||||
Color(0xFF1592AA),
|
||||
Color(0XFF0C83A7),
|
||||
Color(0XFF006FA3)
|
||||
],
|
||||
colors: colorsList,
|
||||
child: Container(
|
||||
width: 200.rpx,
|
||||
height: 90.rpx,
|
||||
|
||||
Reference in New Issue
Block a user