TDConfirmDialog constructor

const TDConfirmDialog({
  1. Key? key,
  2. dynamic action()?,
  3. Color backgroundColor = Colors.white,
  4. double radius = 12.0,
  5. String? title,
  6. Color titleColor = const Color(0xE6000000),
  7. String? content,
  8. Color? contentColor,
  9. double contentMaxHeight = 0,
  10. String? buttonText = '知道了',
  11. Color? buttonTextColor,
  12. TDDialogButtonStyle buttonStyle = TDDialogButtonStyle.normal,
  13. bool? showCloseButton,
})

Implementation

const TDConfirmDialog({
  Key? key,
  this.action,
  this.backgroundColor = Colors.white,
  this.radius = 12.0,
  this.title,
  this.titleColor = const Color(0xE6000000),
  this.content,
  this.contentColor,
  this.contentMaxHeight = 0,
  this.buttonText = '知道了',
  this.buttonTextColor,
  this.buttonStyle = TDDialogButtonStyle.normal,
  this.showCloseButton,
}) : super(key: key);