更新微信登录bug
This commit is contained in:
@@ -1151,6 +1151,91 @@ Future showCustomConfirmDialog(BuildContext context, String name,
|
||||
);
|
||||
}
|
||||
|
||||
Future showCustomConfirmDialogTH(BuildContext context, String name,
|
||||
{String btnName = "确定",
|
||||
ConfirmDialogIcon icon = ConfirmDialogIcon.warn}) async {
|
||||
ThemeController themeController = Get.find();
|
||||
return showDialog(
|
||||
context: context,
|
||||
barrierDismissible: true,
|
||||
builder: (BuildContext context) {
|
||||
return Dialog(
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius:
|
||||
BorderRadius.circular(AppConstants().normal_container_radius),
|
||||
),
|
||||
backgroundColor: themeController.currentColor.sc17, // 在这里设置背景色
|
||||
child: Container(
|
||||
width: 660.rpx,
|
||||
padding: EdgeInsets.fromLTRB(60.rpx, 0, 60.rpx, 32.rpx),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
Container(
|
||||
// color: themeController.currentColor.sc9,
|
||||
alignment: Alignment.centerRight,
|
||||
child: closeIconWhite,
|
||||
),
|
||||
SizedBox(height: 60.rpx),
|
||||
if ("${icon.uname}".isNotEmpty)
|
||||
Center(
|
||||
child: Container(
|
||||
margin: EdgeInsets.only(bottom: 39.rpx),
|
||||
width: 50.rpx,
|
||||
height: 50.rpx,
|
||||
child: Image.asset(
|
||||
"assets/images/toast/${icon.uname}.png",
|
||||
color: themeController.currentColor.sc9,
|
||||
),
|
||||
),
|
||||
),
|
||||
Center(
|
||||
child: Text(
|
||||
'${name}',
|
||||
style: TextStyle(
|
||||
fontSize: 16, color: themeController.currentColor.sc3),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 20.rpx),
|
||||
Container(
|
||||
margin: EdgeInsets.only(top: 50.rpx, bottom: 40.rpx),
|
||||
alignment: Alignment.center,
|
||||
child: CustomCard(
|
||||
borderRadius: AppConstants().button_container_radius,
|
||||
onTap: () {
|
||||
Get.back(result: "confirm");
|
||||
},
|
||||
colors: AppConstants().thNormalButton,
|
||||
child: Container(
|
||||
width: 260.rpx,
|
||||
height: 60.rpx,
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
"确定".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontFamily: 'Inter',
|
||||
fontSize: AppConstants().normal_text_fontSize,
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(width: 17.rpx)),
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Future showCustomConfirmAndCancelDialog(BuildContext context, String name,
|
||||
{String confirmName = "确定",
|
||||
String cancelName = "取消",
|
||||
|
||||
Reference in New Issue
Block a user