show static method
canClose 仅表示是否拦截系统返回意图,不代表遮罩区 return true - confirm false - cancel;
Implementation
static Future<bool> show(
BuildContext ctx, {
String confirmText = '好的',
String? content,
Widget? contentBuild,
String? title,
Widget? titleBuild,
String? cancelText,
Color? confirmTextColor,
bool canClose = false,
}) async {
assert((content != null || contentBuild != null));
return await showDialog<bool>(
context: ctx,
builder: (BuildContext context) {
return TenDiaLogScreen(
canClose: canClose,
title: title,
titleBuild: titleBuild,
confirmText: confirmText,
cancelText: cancelText,
content: content,
contentBuild: contentBuild,
confirmTextColor:confirmTextColor
);
},
) ??
false;
}