showFullScreen<T> static method

Future<T?> showFullScreen<T>(
  1. BuildContext context, {
  2. required String title,
  3. required Widget body,
  4. Widget? action,
  5. String? confirmLabel,
  6. VoidCallback? onConfirm,
  7. List<Widget> bottomActions = const <Widget>[],
  8. String? contentHeadline,
  9. EdgeInsetsGeometry? contentPadding,
  10. M3EDialogController? controller,
  11. Future<bool> onDismissRequest()?,
  12. bool autofocusFirst = true,
  13. 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,
    ),
  );
}