更新英文语言相关问题。

This commit is contained in:
wyf
2026-03-23 15:19:09 +08:00
parent 2d28a550bd
commit a1e835ecbc
20 changed files with 472 additions and 1040 deletions

View File

@@ -113,7 +113,8 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
final menuWidth = _calculateMaxMenuItemWidth(allTexts, textStyle);
popupWidth = menuWidth;
// 计算弹窗需要的实际高度(估算)
final estimatedItemHeight = 66.rpx; // 每个菜单项的估算高度
// final estimatedItemHeight = 66.rpx; // 每个菜单项的估算高度
final estimatedItemHeight = 100.rpx; // 每个菜单项的估算高度
//todo 更新菜单项,需要在此添加数量
// final itemCount =
// widget.device['bind_type'] == BindType.active.code ? 9 : 5;
@@ -151,7 +152,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
// 确保弹窗不会超出屏幕边界
popupTop = math.max(paddingOffset, popupTop);
actualPopupHeight =
math.min(actualPopupHeight, screenHeight * 0.7); // 限制最大高度为屏幕的70%
math.min(actualPopupHeight, screenHeight * 1); // 限制最大高度为屏幕的70%
// 计算左侧位置,确保不会超出屏幕右侧
double popupLeft = position.dx + size.width - popupWidth;
@@ -699,7 +700,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
maxWidth: MediaQuery.sizeOf(context).width * 0.6,
),
child: Text(
'${(widget.device['person']?['name'] as String?)?.isNotEmpty == true ? widget.device['person']!['name'] : '体征测设备'.tr}',
'${(widget.device['person']?['name'] as String?)?.isNotEmpty == true ? widget.device['person']!['name'] : '体征测设备'.tr}',
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,