DHAlertDialog constructor
DHAlertDialog({
- Key? key,
- Widget? title,
- String? titleText,
- EdgeInsetsGeometry? titlePadding,
- TextStyle? titleTextStyle,
- TextAlign titleAlign = TextAlign.center,
- bool hasTitleDivider = false,
- Widget? titleDivider,
- Widget? content,
- String? contentText,
- EdgeInsetsGeometry? contentPadding,
- TextStyle? contentTextStyle,
- TextAlign contentAlign = TextAlign.center,
- String? positiveText,
- TextStyle? positiveTextStyle,
- GestureTapCallback? positiveTap,
- bool hasPositive = true,
- String? negativeText,
- TextStyle? negativeTextStyle,
- GestureTapCallback? negativeTap,
- bool hasNegative = true,
- double? actionHeight,
- Color? dividerColor = DHColors.color_000000_15,
- DividerBuilder? actionDividerBuilder,
- Color? backgroundColor,
- double topRadius = 20.0,
- double bottomRadius = 20.0,
- double? elevation,
- EdgeInsets? dialogMargin,
- EdgeInsets? dialogPadding,
- AlignmentGeometry dialogAlignment = Alignment.center,
- double? dialogWidth,
- double? dialogMinHeight,
- double? dialogMaxHeight,
Implementation
DHAlertDialog({
Key? key,
this.title,
this.titleText,
this.titlePadding,
this.titleTextStyle,
this.titleAlign = TextAlign.center,
this.hasTitleDivider = false,
this.titleDivider,
this.content,
this.contentText,
this.contentPadding,
this.contentTextStyle,
this.contentAlign = TextAlign.center,
this.positiveText,
this.positiveTextStyle,
this.positiveTap,
this.hasPositive = true,
this.negativeText,
this.negativeTextStyle,
this.negativeTap,
this.hasNegative = true,
this.actionHeight,
this.dividerColor = DHColors.color_000000_15,
this.actionDividerBuilder,
this.backgroundColor,
this.topRadius = 20.0,
this.bottomRadius = 20.0,
this.elevation,
this.dialogMargin,
this.dialogPadding,
this.dialogAlignment = Alignment.center,
this.dialogWidth,
this.dialogMinHeight,
this.dialogMaxHeight,
}) : super(key: key);