Widget _customContentAndBtn(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 TDConfirmDialog( title: _dialogTitle, content: _commonContent, padding: const EdgeInsets.fromLTRB(8, 8, 8, 0), buttonWidget: Container( padding: const EdgeInsets.fromLTRB(0, 16, 0, 16), child: TDButton( text: '自定义按钮', theme: TDButtonTheme.primary, onTap: () { Navigator.of(context).pop(); }, ), ), ); } ); } ); }