更新新版控制

This commit is contained in:
wyf
2025-12-30 15:58:19 +08:00
parent 1dcef1090d
commit 36f19a71eb
20 changed files with 359 additions and 71 deletions

View File

@@ -1776,7 +1776,9 @@ Future showCustomConfirmOfWebViewDialog(
{String btnName = "确定",
bool showCancel = false,
String cancelName = "取消",
ConfirmDialogIcon icon = ConfirmDialogIcon.warn}) async {
ConfirmDialogIcon icon = ConfirmDialogIcon.warn,
int type = 1
}) async {
return showDialog(
context: context,
barrierDismissible: true,
@@ -1863,7 +1865,7 @@ Future showCustomConfirmOfWebViewDialog(
onTap: () {
Get.back(result: "confirm");
},
colors: AppConstants().mhtNormalButton, // 渐变背景
colors: type == 3?AppConstants().mhtNormalButton:AppConstants().thNormalButton, // 渐变背景
gradientDirection: GradientDirection.horizontal,
child: Container(
// width: MediaQuery.sizeOf(context).width * 0.5, // 宽度占屏幕一半