CustomAlertDialog constructor

const CustomAlertDialog({
  1. Key? key,
  2. Widget? title,
  3. EdgeInsetsGeometry? titlePadding,
  4. Widget? content,
  5. EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(24.0, 20.0, 24.0, 24.0),
  6. List<Widget>? actions,
  7. String? semanticLabel,
  8. Widget divider = const Divider(height: 0.0),
  9. 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,
});