SimpleDialog constructor
const
SimpleDialog({
- Key? key,
- Widget? title,
- Widget? subTitle,
- EdgeInsetsGeometry titlePadding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 16.0),
- List<
Widget> ? children, - EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 16.0),
- Color? backgroundColor,
- double? elevation,
- String? semanticLabel,
- ShapeBorder? shape,
- Widget? content,
- TextStyle? contentTextStyle,
- List<
Widget> ? actions, - dynamic enableFullWidth,
- dynamic enableFullHeight,
- Color? headerColor,
- Color? backButtonColor,
- Color? closeButtonColor,
- double? borderRadius,
- VoidCallback? onBackClick,
- VoidCallback? onCloseClick,
- bool? enableBackButton,
- bool? enableCloseButton,
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.subTitle,
this.titlePadding = const EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 16.0),
this.children,
this.contentPadding = const EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 16.0),
this.backgroundColor,
this.elevation,
this.semanticLabel,
this.shape,
this.content,
this.contentTextStyle,
this.actions,
this.enableFullWidth,
this.enableFullHeight,
this.headerColor,
this.backButtonColor,
this.closeButtonColor,
this.borderRadius,
this.onBackClick,
this.onCloseClick,
this.enableBackButton,
this.enableCloseButton,
}) : assert(titlePadding != null),
assert(contentPadding != null),
super(key: key);