Widget _customConfirmVertical(BuildContext context) { return TDButton( text: '纵向按钮-自定义内容', size: TDButtonSize.large, type: TDButtonType.outline, theme: TDButtonTheme.primary, onTap: () { showGeneralDialog( context: context, pageBuilder: (BuildContext buildContext, Animation animation, Animation secondaryAnimation) { return TDAlertDialog.vertical( title: _dialogTitle, contentWidget: TDText.rich( TDTextSpan( children: [ TDTextSpan(text: '红色文字', textColor: Colors.red), TDTextSpan(text: '绿色文字', textColor: Colors.green), ] ) ), buttons: [ TDDialogButtonOptions( title: '主要按钮', action: () { Navigator.pop(context); }, theme: TDButtonTheme.primary), TDDialogButtonOptions( title: '次要按钮', titleColor: TDTheme.of(context).brandColor7, action: () { Navigator.pop(context); }, theme: TDButtonTheme.light), ]); }, ); }, ); }