SimpleDialog constructor

const SimpleDialog({
  1. Key? key,
  2. Widget? title,
  3. Widget? subTitle,
  4. EdgeInsetsGeometry titlePadding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 16.0),
  5. List<Widget>? children,
  6. EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 16.0),
  7. Color? backgroundColor,
  8. double? elevation,
  9. String? semanticLabel,
  10. ShapeBorder? shape,
  11. Widget? content,
  12. TextStyle? contentTextStyle,
  13. List<Widget>? actions,
  14. dynamic enableFullWidth,
  15. dynamic enableFullHeight,
  16. Color? headerColor,
  17. Color? backButtonColor,
  18. Color? closeButtonColor,
  19. double? borderRadius,
  20. VoidCallback? onBackClick,
  21. VoidCallback? onCloseClick,
  22. bool? enableBackButton,
  23. bool? enableCloseButton,
})

Creates a simple dialog.

Typically used in conjunction with showDialog.

The titlePadding and contentPadding arguments must not be null.

Implementation

const SimpleDialog({
  Key? key,
  this.title,
  this.subTitle,
  this.titlePadding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 16.0),
  this.children,
  this.contentPadding = const EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 16.0),
  this.backgroundColor,
  this.elevation,
  this.semanticLabel,
  this.shape,
  this.content,
  this.contentTextStyle,
  this.actions,
  this.enableFullWidth,
  this.enableFullHeight,
  this.headerColor,
  this.backButtonColor,
  this.closeButtonColor,
  this.borderRadius,
  this.onBackClick,
  this.onCloseClick,
  this.enableBackButton,
  this.enableCloseButton,
})  : assert(titlePadding != null),
      assert(contentPadding != null),
      super(key: key);