|
@@ -34,6 +34,7 @@ class LeftSiderSelectMeasureState extends FState<LeftSiderSelectMeasure> {
|
|
|
final measureHandler = Get.find<MeasureHandler>();
|
|
|
final measureData = Get.find<MeasureDataController>();
|
|
|
final measureMetaController = Get.find<MeasureMetaController>();
|
|
|
+ final measureLanguage = MeasureLanguage();
|
|
|
|
|
|
/// 当前选中的测量项下标
|
|
|
int activeItemIndex = 0;
|
|
@@ -249,7 +250,7 @@ class LeftSiderSelectMeasureState extends FState<LeftSiderSelectMeasure> {
|
|
|
FWidget _buildItemButton(int itemIndex) {
|
|
|
final itemMeta = measureData.curItemMetaList[itemIndex];
|
|
|
final ifShowCN = i18nBook.isCurrentChinese && // 中文环境下显示中英文,否则只显示英文
|
|
|
- MeasureLanguage.t(itemMeta.description) != itemMeta.description;
|
|
|
+ measureLanguage.t(itemMeta.description) != itemMeta.description;
|
|
|
final isActived = itemIndex == activeItemIndex;
|
|
|
return FElevatedButton(
|
|
|
name: itemMeta.name,
|
|
@@ -260,7 +261,7 @@ class LeftSiderSelectMeasureState extends FState<LeftSiderSelectMeasure> {
|
|
|
children: [
|
|
|
if (ifShowCN)
|
|
|
FText(
|
|
|
- MeasureLanguage.t(itemMeta.description),
|
|
|
+ measureLanguage.t(itemMeta.description),
|
|
|
maxLines: 1,
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
style: TextStyle(
|
|
@@ -293,7 +294,7 @@ class LeftSiderSelectMeasureState extends FState<LeftSiderSelectMeasure> {
|
|
|
FWidget _buildItemTitle(int itemIndex) {
|
|
|
final itemMeta = measureData.curItemMetaList[itemIndex];
|
|
|
final ifShowCN = i18nBook.isCurrentChinese && // 中文环境下显示中英文,否则只显示英文
|
|
|
- MeasureLanguage.t(itemMeta.description) != itemMeta.description;
|
|
|
+ measureLanguage.t(itemMeta.description) != itemMeta.description;
|
|
|
return FContainer(
|
|
|
decoration: const BoxDecoration(
|
|
|
border: Border(
|
|
@@ -309,7 +310,7 @@ class LeftSiderSelectMeasureState extends FState<LeftSiderSelectMeasure> {
|
|
|
children: [
|
|
|
if (ifShowCN)
|
|
|
FText(
|
|
|
- MeasureLanguage.t(itemMeta.description),
|
|
|
+ measureLanguage.t(itemMeta.description),
|
|
|
maxLines: 1,
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
style: TextStyle(
|