showFullScreen<T> static method
Future<T?>
showFullScreen<T>(
- BuildContext context, {
- required String title,
- required Widget body,
- Widget? action,
- String? confirmLabel,
- VoidCallback? onConfirm,
- List<
Widget> bottomActions = const <Widget>[], - String? contentHeadline,
- EdgeInsetsGeometry? contentPadding,
- M3EDialogController? controller,
- Future<
bool> onDismissRequest()?, - bool autofocusFirst = true,
- String? semanticLabel,
Presents a full-screen dialog with a header of title and action.
For compact widths only; see showAdaptive for larger screens.
Implementation
static Future<T?> showFullScreen<T>(
BuildContext context, {
required String title,
required Widget body,
Widget? action,
String? confirmLabel,
VoidCallback? onConfirm,
List<Widget> bottomActions = const <Widget>[],
String? contentHeadline,
EdgeInsetsGeometry? contentPadding,
M3EDialogController? controller,
Future<bool> Function()? onDismissRequest,
bool autofocusFirst = true,
String? semanticLabel,
}) {
return _pushDialog<T>(
context,
variant: M3EDialogVariant.fullScreen,
barrierDismissible: false,
controller: controller,
onDismissRequest: onDismissRequest,
autofocusFirst: autofocusFirst,
builder: (BuildContext context) => M3EFullScreenDialog(
title: title,
body: body,
action: action,
confirmLabel: confirmLabel,
onConfirm: onConfirm,
bottomActions: bottomActions,
contentHeadline: contentHeadline,
contentPadding: contentPadding,
semanticLabel: semanticLabel,
),
);
}