A simple material design dialog.

A simple dialog offers the user a choice between several options. A simple dialog has an optional title that is displayed above the choices.

For dialogs that inform the user about a situation, consider using an AlertDialog.

Typically passed as the child widget to showDialog, which displays the dialog.

See also:

Inheritance

Constructors

SimpleDialog({Key key, Widget title, EdgeInsets titlePadding, List<Widget> children, EdgeInsets contentPadding })

Creates a simple dialog.

Properties

children List<Widget>

The (optional) content of the dialog is displayed in a Block underneath the title.

read-only
contentPadding EdgeInsets

Padding around the content.

read-only
title Widget

The (optional) title of the dialog is displayed in a large font at the top of the dialog.

read-only
titlePadding EdgeInsets

Padding around the title.

read-only
hashCode int

Get a hash code for this object.

read-only, inherited
key Key

Controls how one widget replaces another widget in the tree.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

build(BuildContext context) Widget

Describes the part of the user interface represented by this widget.

createElement() StatelessElement

Creates a StatelessElement to manage this widget's location in the tree.

inherited
debugFillDescription(List<String> description) → void

Add additional information to the given description for use by toString.

inherited
noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns a string representation of this object.

inherited
toStringShort() String

A short, textual description of this widget.

inherited