fix: 修复国际化问题
This commit is contained in:
parent
02c3429e30
commit
03cb9c9451
@ -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 = '';
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user