DHAlertDialog constructor

DHAlertDialog({
  1. Key? key,
  2. Widget? title,
  3. String? titleText,
  4. EdgeInsetsGeometry? titlePadding,
  5. TextStyle? titleTextStyle,
  6. TextAlign titleAlign = TextAlign.center,
  7. bool hasTitleDivider = false,
  8. Widget? titleDivider,
  9. Widget? content,
  10. String? contentText,
  11. EdgeInsetsGeometry? contentPadding,
  12. TextStyle? contentTextStyle,
  13. TextAlign contentAlign = TextAlign.center,
  14. String? positiveText,
  15. TextStyle? positiveTextStyle,
  16. GestureTapCallback? positiveTap,
  17. bool hasPositive = true,
  18. String? negativeText,
  19. TextStyle? negativeTextStyle,
  20. GestureTapCallback? negativeTap,
  21. bool hasNegative = true,
  22. double? actionHeight,
  23. Color? dividerColor = DHColors.color_000000_15,
  24. DividerBuilder? actionDividerBuilder,
  25. Color? backgroundColor,
  26. double topRadius = 20.0,
  27. double bottomRadius = 20.0,
  28. double? elevation,
  29. EdgeInsets? dialogMargin,
  30. EdgeInsets? dialogPadding,
  31. AlignmentGeometry dialogAlignment = Alignment.center,
  32. double? dialogWidth,
  33. double? dialogMinHeight,
  34. 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);