AlertDialog constructor

const AlertDialog({Key key, Widget title, EdgeInsetsGeometry titlePadding, Widget content, EdgeInsetsGeometry contentPadding: const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0), List<Widget> actions, String semanticLabel, ShapeBorder shape })

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 AlertDialog({
  Key key,
  this.title,
  this.titlePadding,
  this.content,
  this.contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  this.actions,
  this.semanticLabel,
  this.shape,
}) : assert(contentPadding != null),
     super(key: key);