SimpleDialog constructor
const
SimpleDialog({
- Key? key,
- Widget? title,
- EdgeInsetsGeometry titlePadding = const EdgeInsets.fromLTRB(24.0, 24.0, 24.0, 0.0),
- TextStyle? titleTextStyle,
- List<
Widget> ? children, - EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
- Color? backgroundColor,
- double? elevation,
- String? semanticLabel,
- EdgeInsets insetPadding = _defaultInsetPadding,
- Clip clipBehavior = Clip.none,
- ShapeBorder? shape,
- 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);