CustomDialogWidget constructor

const CustomDialogWidget({
  1. Key? key,
  2. Widget? title,
  3. EdgeInsetsGeometry? titlePadding,
  4. TextStyle? titleTextStyle,
  5. Widget? content,
  6. EdgeInsetsGeometry? contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  7. TextStyle? contentTextStyle,
  8. Widget? bottomWidget,
  9. List<Widget>? actions,
  10. Color? backgroundColor,
  11. double? elevation,
  12. String? semanticLabel,
  13. ShapeBorder? shape,
  14. double? minWidth,
})

Creates an alert dialog.

Typically used in conjunction with showDialog.

The contentPadding must not be null. The titlePadding defaults to null, which implies a default that depends on the values of the other properties. See the documentation of titlePadding for details.

Implementation

const CustomDialogWidget({
  Key? key,
  this.title,
  this.titlePadding,
  this.titleTextStyle,
  this.content,
  this.contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  this.contentTextStyle,
  this.bottomWidget,
  this.actions,
  this.backgroundColor,
  this.elevation,
  this.semanticLabel,
  this.shape,
  this.minWidth,
})  : assert(contentPadding != null),
      super(key: key);