CustomAlertDialog constructor
const
CustomAlertDialog({
- 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,
- Widget divider = const Divider(height: 0.0),
- bool? isDividerEnabled = true,
Creates a CustomAlertDialog.
title
is the widget displayed at the top of the dialog, often used for headings.
titlePadding
specifies custom padding for the title widget.
content
is the widget displayed as the body of the dialog.
contentPadding
provides padding around the content widget, defaulting to 24dp.
actions
is a list of widgets displayed at the bottom, often for buttons.
semanticLabel
provides an accessibility label for the dialog.
divider
allows customization of the divider widget between sections.
isDividerEnabled
controls whether the divider is displayed.
Implementation
const CustomAlertDialog({
super.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.divider = const Divider(
height: 0.0,
),
this.isDividerEnabled = true,
});