showFullScreen<T> static method

Future<T?> showFullScreen<T>(
  1. BuildContext context, {
  2. required String title,
  3. required Widget body,
  4. Widget? action,
})

Presents a full-screen dialog with a header of title and action.

Implementation

static Future<T?> showFullScreen<T>(
  BuildContext context, {
  required String title,
  required Widget body,
  Widget? action,
}) {
  return showGeneralDialog<T>(
    context: context,
    barrierLabel: 'Full screen dialog',
    transitionDuration: M3EMotion.long2,
    pageBuilder: (BuildContext context, _, _) {
      return M3EComponentTheme(
        builder: (context) =>
            _FullScreenDialog(title: title, body: body, action: action),
      );
    },
    transitionBuilder: _slide,
  );
}