更新英文语言相关问题。
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user