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. ShapeBorder shape}
)

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.shape,
}) : assert(titlePadding != null),
     assert(contentPadding != null),
     super(key: key);