更新新版控制
This commit is contained in:
@@ -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, // 宽度占屏幕一半
|
||||
|
||||
Reference in New Issue
Block a user