Widget _customConfirmNormal(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( title: _dialogTitle, titleAlignment: Alignment.centerRight, contentWidget: TDText.rich( TDTextSpan( children: [ TDTextSpan(text: '红色文字', textColor: Colors.red), TDTextSpan(text: '绿色文字', textColor: Colors.green), ] ) ), ); }, ); }, ); }