CustomDialog constructor

const CustomDialog({
  1. Key? key,
  2. Widget? child,
  3. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  4. Curve insetAnimationCurve = Curves.decelerate,
  5. ShapeBorder? shape,
  6. BoxConstraints constraints = const BoxConstraints(minWidth: 280.0, minHeight: 280.0, maxHeight: 400.0, maxWidth: 400.0),
})

Creates a dialog.

Typically used in conjunction with showDialog.

Implementation

const CustomDialog({
  super.key,
  this.child,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.decelerate,
  this.shape,
  this.constraints = const BoxConstraints(
      minWidth: 280.0, minHeight: 280.0, maxHeight: 400.0, maxWidth: 400.0),
});