showAlertPay static method
void
showAlertPay({})
支付成功提示
Implementation
static void showAlertPay(
{String text = '',
bool barrierDismissible = false,
bool isOk = true,
Function? callBack}) {
Get.defaultDialog(
barrierDismissible: barrierDismissible,
contentPadding: EdgeInsets.only(bottom: 22.w, top: 0),
title: '',
titlePadding: const EdgeInsets.all(0),
content: FButton(
image: SvgPicture.asset(
isOk
? 'assets/images/icon_success.svg'
: 'assets/images/icon_fail.svg',
width: 50.w,
height: 50.w,
),
text: text,
style: MyTextStyle.s20w500(color: AppColor.mainText),
disabledColor: Get.theme.dialogBackgroundColor,
imageAlignment: ImageAlignment.top,
),
confirm: FButton(
text: '知道了',
width: 120.w,
height: 24.w,
style: MyTextStyle.s16w400(color: AppColor.greenBtn),
alignment: Alignment.center,
color: AppColor.whiteColor,
highlightColor: AppColor.whiteColor,
onPressed: () {
callBack?.call();
Get.back();
},
),
confirmTextColor: AppColor.greenBtn,
buttonColor: AppColor.whiteColor);
}