showPIDialog<T> function
Future<T?>
showPIDialog<T>({
- required BuildContext context,
- bool barrierDismissible = false,
- Key? key,
- Widget? titleWidget,
- String? title,
- Widget? contentWidget,
- String? content,
- TextAlign contentAlign = TextAlign.center,
- Widget? extra,
- String? cancelText,
- Function? cancelTap,
- String? confirmText,
- ConfirmColors confirmTextColor = ConfirmColors.warn,
- Function? confirmTap,
- bool isPopDialogOnClickCancel = true,
- bool disableButtons = false,
- double? width,
- double? maxHeight,
- double? minHeight,
- bool isShowCancel = true,
显示弹窗
Implementation
Future<T?> showPIDialog<T>({
required BuildContext context,
bool barrierDismissible = false,
Key? key,
Widget? titleWidget,
String? title,
Widget? contentWidget,
String? content,
TextAlign contentAlign = TextAlign.center,
Widget? extra,
String? cancelText,
Function? cancelTap,
String? confirmText,
ConfirmColors confirmTextColor = ConfirmColors.warn,
Function? confirmTap,
bool isPopDialogOnClickCancel = true,
bool disableButtons = false,
double? width,
double? maxHeight,
double? minHeight,
bool isShowCancel = true,
}) {
return showDialog<T>(
context: context,
barrierDismissible: barrierDismissible,
builder: (context) {
return PIDialogLayout(
key: key,
title: title,
titleWidget: titleWidget,
content: content,
contentAlign: contentAlign,
contentWidget: contentWidget,
extra: extra,
cancelText: cancelText,
cancelTap: cancelTap,
confirmText: confirmText,
confirmTextColor: confirmTextColor,
confirmTap: confirmTap,
isPopDialogOnClickCancel: isPopDialogOnClickCancel,
disableButtons: disableButtons,
width: width,
maxHeight: maxHeight,
minHeight: minHeight,
isShowCancel: isShowCancel,
);
},
);
}