Dialog.fullscreen constructor

const Dialog.fullscreen({
  1. Key? key,
  2. Color? backgroundColor,
  3. Duration insetAnimationDuration = Duration.zero,
  4. Curve insetAnimationCurve = Curves.decelerate,
  5. Widget? child,
  6. SemanticsRole semanticsRole = SemanticsRole.dialog,
})

Creates a fullscreen dialog.

Typically used in conjunction with showDialog.

The dialog's Material covers the whole screen, including the area behind the software keyboard, while child is kept above the keyboard, so that a translucent keyboard shows the dialog's backgroundColor rather than what is behind the dialog.

Implementation

const Dialog.fullscreen({
  super.key,
  this.backgroundColor,
  this.insetAnimationDuration = Duration.zero,
  this.insetAnimationCurve = Curves.decelerate,
  this.child,
  this.semanticsRole = SemanticsRole.dialog,
}) : elevation = 0,
     shadowColor = null,
     surfaceTintColor = null,
     insetPadding = EdgeInsets.zero,
     clipBehavior = Clip.none,
     shape = null,
     alignment = null,
     constraints = null,
     _fullscreen = true;