|
...
|
...
|
@@ -11853,15 +11853,98 @@ class DialogUtil { |
|
|
|
),
|
|
|
|
children: [
|
|
|
|
TextSpan(
|
|
|
|
text: '确定要将', style: TextStyle(color: contentColor)),
|
|
|
|
text: '确定要将预订:', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: '\n\n', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(
|
|
|
|
text: contentold,
|
|
|
|
style: TextStyle(color: MyColours.color_438E93)),
|
|
|
|
TextSpan(text: '的预订变更为', style: TextStyle(color: contentColor)),
|
|
|
|
text: contentold, style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: '\n\n', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: '变更为:', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: '\n', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(
|
|
|
|
text: contentnew,
|
|
|
|
style: TextStyle(color: MyColours.color_438E93)),
|
|
|
|
TextSpan(text: '?', style: TextStyle(color: contentColor)),
|
|
|
|
text: contentnew, style: TextStyle(color: contentColor)),
|
|
|
|
// TextSpan(text: '?', style: TextStyle(color: contentColor)),
|
|
|
|
])),
|
|
|
|
// content: Text(content,
|
|
|
|
// textAlign: textAlign,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontWeight:
|
|
|
|
// isBoldContent ? FontWeight.bold : FontWeight.normal,
|
|
|
|
// fontSize: ScreenUtil().setSp(30),
|
|
|
|
// color: contentColor)),
|
|
|
|
actions: [
|
|
|
|
if (showlTitle)
|
|
|
|
CupertinoDialogAction(
|
|
|
|
child: Text(lTitle,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E6000000)),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
if (lCallback != null) {
|
|
|
|
lCallback();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
),
|
|
|
|
CupertinoDialogAction(
|
|
|
|
child: Text(rTitle,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: isBold ? FontWeight.bold : FontWeight.normal,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: rColor)),
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
|
|
|
if (rCallback != null) {
|
|
|
|
rCallback();
|
|
|
|
}
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
static cupertinoAlertDialogCancelReseve(BuildContext context,
|
|
|
|
{String title = "",
|
|
|
|
String content = "内容",
|
|
|
|
String lTitle = "取消",
|
|
|
|
String rTitle = "确定",
|
|
|
|
Color rColor = MyColours.color_438E93,
|
|
|
|
bool isBold = false,
|
|
|
|
bool isBoldContent = false,
|
|
|
|
bool showlTitle = true,
|
|
|
|
Color contentColor = MyColours.color_99000000,
|
|
|
|
VoidCallback? lCallback,
|
|
|
|
TextAlign textAlign = TextAlign.center,
|
|
|
|
VoidCallback? rCallback}) {
|
|
|
|
showCupertinoDialog(
|
|
|
|
context: context,
|
|
|
|
builder: (context) {
|
|
|
|
return CupertinoAlertDialog(
|
|
|
|
title: title != ''
|
|
|
|
? Text(title,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E6000000))
|
|
|
|
: SizedBox(),
|
|
|
|
content: RichText(
|
|
|
|
text: TextSpan(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
),
|
|
|
|
children: [
|
|
|
|
TextSpan(
|
|
|
|
text: '确定要将预订:', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: '\n\n', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: content, style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: '\n\n', style: TextStyle(color: contentColor)),
|
|
|
|
TextSpan(text: '取消吗?', style: TextStyle(color: contentColor)),
|
|
|
|
// TextSpan(text: '\n', style: TextStyle(color: contentColor)),
|
|
|
|
// TextSpan(
|
|
|
|
// text: contentnew, style: TextStyle(color: contentColor)),
|
|
|
|
// TextSpan(text: '?', style: TextStyle(color: contentColor)),
|
|
|
|
])),
|
|
|
|
// content: Text(content,
|
|
|
|
// textAlign: textAlign,
|
...
|
...
|
|