多语言
This commit is contained in:
@@ -244,31 +244,31 @@ class ScorePage extends GetView<mh.ScoreController> {
|
||||
String scoreText;
|
||||
Color scoreColor;
|
||||
if (controller.model.score == 1) {
|
||||
scoreText = '差';
|
||||
scoreText = '差'.tr;
|
||||
scoreColor =
|
||||
stringToColor("#E55E92");
|
||||
} else if (controller.model.score ==
|
||||
2) {
|
||||
scoreText = '较差';
|
||||
scoreText = '较差'.tr;
|
||||
scoreColor =
|
||||
stringToColor("#E55E92");
|
||||
} else if (controller.model.score ==
|
||||
3) {
|
||||
scoreText = '一般';
|
||||
scoreText = '一般'.tr;
|
||||
scoreColor =
|
||||
stringToColor("#07C160");
|
||||
} else if (controller.model.score ==
|
||||
4) {
|
||||
scoreText = '优秀';
|
||||
scoreText = '优秀'.tr;
|
||||
scoreColor =
|
||||
stringToColor("#F8AE00");
|
||||
} else if (controller.model.score ==
|
||||
5) {
|
||||
scoreText = '完美';
|
||||
scoreText = '完美'.tr;
|
||||
scoreColor =
|
||||
stringToColor("#F8AE00");
|
||||
} else {
|
||||
scoreText = '未评分'; // 如果没有评分显示默认文字
|
||||
scoreText = '未评分'.tr; // 如果没有评分显示默认文字
|
||||
scoreColor = Colors.grey; // 默认颜色
|
||||
}
|
||||
return Text(
|
||||
@@ -289,7 +289,7 @@ class ScorePage extends GetView<mh.ScoreController> {
|
||||
EdgeInsetsDirectional.fromSTEB(
|
||||
0, 17, 0, 0),
|
||||
child: Text(
|
||||
'再多的溢美之词,都比不上您真心的评价。我们愿付出200%的努力,只为您100%的满意~感谢您的支持与厚爱!',
|
||||
'再多的溢美之词,都比不上您真心的评价。我们愿付出200%的努力,只为您100%的满意~感谢您的支持与厚爱!'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 26.rpx,
|
||||
@@ -409,7 +409,7 @@ class ScorePage extends GetView<mh.ScoreController> {
|
||||
borderRadius: BorderRadius.circular(16.rpx),
|
||||
),
|
||||
child: Text(
|
||||
"提交",
|
||||
"提交".tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: stringToColor("#011D33"),
|
||||
|
||||
Reference in New Issue
Block a user