TDAlertDialog constructor
const
TDAlertDialog({
- Key? key,
- Color backgroundColor = Colors.white,
- double radius = 12.0,
- String? title,
- Color titleColor = const Color(0xE6000000),
- String? content,
- Color? contentColor,
- double contentMaxHeight = 0,
- TDDialogButtonOptions? leftBtn,
- TDDialogButtonOptions? rightBtn,
- bool? showCloseButton,
- TDDialogButtonStyle buttonStyle = TDDialogButtonStyle.normal,
横向按钮排列的对话框
leftBtn
和rightBtn
不传style参数会应用默认样式,左侧弱按钮,右侧强按钮
Implementation
const TDAlertDialog({
Key? key,
this.backgroundColor = Colors.white,
this.radius = 12.0,
this.title,
this.titleColor = const Color(0xE6000000),
this.content,
this.contentColor,
this.contentMaxHeight = 0,
this.leftBtn,
this.rightBtn,
this.showCloseButton,
TDDialogButtonStyle buttonStyle = TDDialogButtonStyle.normal,
}) : assert((title != null || content != null)),
_vertical = false,
_buttons = null,
_buttonStyle = buttonStyle,
super(key: key);