showAlert static method
文本提示框
Implementation
static void showAlert(String text,
{bool barrierDismissible = false, Function? callBack}) {
Get.defaultDialog(
barrierDismissible: barrierDismissible,
radius: 0,
title: '',
titlePadding: const EdgeInsets.only(top: 0),
content: Text(
text,
style: MyTextStyle.s12w400(color: AppColor.mainColor),
),
confirm: FButton(
width: 150.w,
height: 32.w,
text: '确定',
corner: FCorner.all(4),
color: AppColor.orangeBtnGray,
disabledColor: AppColor.orangeBtnGray,
highlightColor: AppColor.orangeBtnGray,
style: MyTextStyle.s14w400(color: AppColor.whiteColor),
alignment: Alignment.center,
onPressed: () {
assert(Get.context != null, 'Get 检查框架使用状态');
AppFocus.unfocus(Get.context!);
callBack?.call();
Get.back();
},
));
}