CustomDialog constructor

const CustomDialog({
  1. Key? key,
  2. Color? backgroundColor,
  3. double? elevation,
  4. Duration? insetAnimationDuration = const Duration(milliseconds: 100),
  5. Curve? insetAnimationCurve = Curves.decelerate,
  6. double? minWidth = 280.0,
  7. ShapeBorder? shape,
  8. Widget? child,
})

Creates a dialog.

Typically used in conjunction with showDialog.

Implementation

const CustomDialog({
  Key? key,
  this.backgroundColor,
  this.elevation,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.decelerate,
  this.minWidth = 280.0,
  this.shape,
  this.child,
}) : super(key: key);