widgets/dialog/show_dialog library

Classes

PIDialogContent
弹窗主体
PIDialogParams<T>
打开对话框时的参数
PIDialogResult<T>
对话框返回的结果
PIDialogStateful
PIDialogStateless
无状态弹窗

Enums

PIDialogType

Functions

showPIConfirmDialog({required BuildContext context}) Future<bool>
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}) Future<T?>
显示弹窗
showPIDialogBuilder<P, R>({String titleBuilder(P params)?, Widget titleWidgetBuilder(P params)?, String contentBuilder(P params)?, Widget contentWidgetBuilder(P params)?}) → dynamic
P 参数类型 R 返回结果类型