TDAlertDialog.vertical constructor
const
TDAlertDialog.vertical({})
纵向按钮排列的对话框
buttons
参数是必须的,纵向按钮默认样式都是TDButtonTheme.primary
Implementation
const TDAlertDialog.vertical({
Key? key,
required List<TDDialogButtonOptions> buttons,
this.backgroundColor = Colors.white,
this.radius = 12.0,
this.title,
this.titleColor = Colors.black,
this.content,
this.contentColor,
this.contentMaxHeight = 0,
this.showCloseButton,
}) : _vertical = true,
leftBtn = null,
rightBtn = null,
_buttons = buttons,
_buttonStyle = TDDialogButtonStyle.normal,
super(key: key);