js
复制代码
<Widget>[
showGeneralDialog(
context: context,
pageBuilder: (BuildContext buildContext, Animation<double> animation, Animation<double> secondaryAnimation) {
return TDAlertDialog(
title: '退出登录',
content: '请确定退出该账号',
buttonWidget: <Widget>[
<Widget>[
Text('取消',style: TextStyle(fontSize: 13.sp,fontWeight: FontWeight.w500,color: AppColors.Color1818),)
].toRow(mainAxisAlignment: MainAxisAlignment.center)
.card(color: AppColors.Colorf6f6)
.width(138.w).height(40.w)
.onTap(()=>Navigator.of(context).pop()),
<Widget>[
Text('确定',style: TextStyle(fontSize: 13.sp,fontWeight: FontWeight.w500,color: AppColors.Color1818),)
].toRow(mainAxisAlignment: MainAxisAlignment.center)
.card(color: AppColors.ColorMain)
.width(138.w).height(40.w)
.onTap((){
Navigator.of(context).pop();
controller.outLogin();
}),
].toRow(mainAxisAlignment: MainAxisAlignment.spaceBetween).paddingOnly(left:15.w,right: 15.w,bottom: 30.w),
);
},
);