showAntModal<T> function
Future<T?>
showAntModal<T>({
- required BuildContext context,
- StateStyle? style,
- bool? closeOnMaskClick = false,
- String? title,
- Widget? header,
- Widget? content,
- bool? showCloseButton,
- List<
Widget> ? actions, - bool? closeOnAction = false,
显示模态框
Implementation
Future<T?> showAntModal<T>({
required BuildContext context,
StateStyle? style,
bool? closeOnMaskClick = false,
String? title,
Widget? header,
Widget? content,
bool? showCloseButton,
List<Widget>? actions,
bool? closeOnAction = false,
}) {
return showDialog(
context: context,
barrierDismissible: closeOnMaskClick ?? false,
builder: (context) {
return AntModalView(
style: style,
title: title,
header: header,
content: content,
showCloseButton: showCloseButton,
actions: actions,
closeOnAction: closeOnAction,
);
});
}