SimpleDialog constructor

const SimpleDialog({
  1. Key? key,
  2. Widget? title,
  3. EdgeInsetsGeometry titlePadding = const EdgeInsets.fromLTRB(24.0, 24.0, 24.0, 0.0),
  4. TextStyle? titleTextStyle,
  5. List<Widget>? children,
  6. EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
  7. Color? backgroundColor,
  8. double? elevation,
  9. String? semanticLabel,
  10. EdgeInsets insetPadding = _defaultInsetPadding,
  11. Clip clipBehavior = Clip.none,
  12. ShapeBorder? shape,
  13. AlignmentGeometry? alignment,
})

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.titlePadding = const EdgeInsets.fromLTRB(24.0, 24.0, 24.0, 0.0),
  this.titleTextStyle,
  this.children,
  this.contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
  this.backgroundColor,
  this.elevation,
  this.semanticLabel,
  this.insetPadding = _defaultInsetPadding,
  this.clipBehavior = Clip.none,
  this.shape,
  this.alignment,
})  : assert(titlePadding != null),
      assert(contentPadding != null),
      super(key: key);