TDAlertDialog.vertical constructor

const TDAlertDialog.vertical({
  1. Key? key,
  2. required List<TDDialogButtonOptions> buttons,
  3. Color backgroundColor = Colors.white,
  4. double radius = 12.0,
  5. String? title,
  6. Color titleColor = Colors.black,
  7. String? content,
  8. Color? contentColor,
  9. double contentMaxHeight = 0,
  10. bool? showCloseButton,
})

纵向按钮排列的对话框

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);