Dialog constructor
- Key? key,
- Color? backgroundColor,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- Duration insetAnimationDuration = const Duration(milliseconds: 100),
- Curve insetAnimationCurve = Curves.decelerate,
- EdgeInsets? insetPadding,
- Clip? clipBehavior,
- ShapeBorder? shape,
- AlignmentGeometry? alignment,
- 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;