Dialog constructor

const Dialog({
  1. Key? key,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  7. Curve insetAnimationCurve = Curves.decelerate,
  8. EdgeInsets? insetPadding,
  9. Clip? clipBehavior,
  10. ShapeBorder? shape,
  11. AlignmentGeometry? alignment,
  12. Widget? child,
})

Creates a dialog.

Typically used in conjunction with showDialog.

Implementation

const Dialog({
  super.key,
  this.backgroundColor,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.decelerate,
  this.insetPadding,
  this.clipBehavior,
  this.shape,
  this.alignment,
  this.child,
}) : assert(elevation == null || elevation >= 0.0),
     _fullscreen = false;