fix: 修复国际化问题

This commit is contained in:
魏少阳 2024-11-05 09:55:04 +08:00
parent 02c3429e30
commit 03cb9c9451

View File

@ -74,14 +74,16 @@ class ShowTipView {
context: Get.context!,
builder: (BuildContext context) {
return CupertinoAlertDialog(
content: Text(contentStr),
content: Text(contentStr.tr),
actions: <Widget>[
CupertinoDialogAction(
child: Text('取消'.tr, style: TextStyle(color: AppColors.mainColor)),
child:
Text('取消'.tr, style: TextStyle(color: AppColors.mainColor)),
onPressed: Get.back,
),
CupertinoDialogAction(
child: Text('确定'.tr, style: TextStyle(color: AppColors.mainColor)),
child:
Text('确定'.tr, style: TextStyle(color: AppColors.mainColor)),
onPressed: () {
Get.back();
sureClick();
@ -124,7 +126,7 @@ class ShowTipView {
);
}
void resetGetController(){
void resetGetController() {
getController.text = '';
}