fix: 修复国际化问题
This commit is contained in:
parent
02c3429e30
commit
03cb9c9451
@ -74,14 +74,16 @@ class ShowTipView {
|
|||||||
context: Get.context!,
|
context: Get.context!,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return CupertinoAlertDialog(
|
return CupertinoAlertDialog(
|
||||||
content: Text(contentStr),
|
content: Text(contentStr.tr),
|
||||||
actions: <Widget>[
|
actions: <Widget>[
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text('取消'.tr, style: TextStyle(color: AppColors.mainColor)),
|
child:
|
||||||
|
Text('取消'.tr, style: TextStyle(color: AppColors.mainColor)),
|
||||||
onPressed: Get.back,
|
onPressed: Get.back,
|
||||||
),
|
),
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text('确定'.tr, style: TextStyle(color: AppColors.mainColor)),
|
child:
|
||||||
|
Text('确定'.tr, style: TextStyle(color: AppColors.mainColor)),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.back();
|
Get.back();
|
||||||
sureClick();
|
sureClick();
|
||||||
@ -124,7 +126,7 @@ class ShowTipView {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void resetGetController(){
|
void resetGetController() {
|
||||||
getController.text = '';
|
getController.text = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user