更新首页数据滚动效果

This commit is contained in:
wyf
2026-01-12 15:16:36 +08:00
parent 0ef8ddee8a
commit e841ee887a
19 changed files with 1160 additions and 400 deletions

View File

@@ -128,14 +128,29 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
deviceShareController.updateAll();
},
)),
Text(
'主设备'.tr +
"${device['person']?['name'] == null ? '未命名'.tr : device['person']['name']}",
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
Expanded(
child: Text(
'主设备'.tr +
(device['person'] != null &&
device['person'] is Map &&
device['person']['name'] !=
null &&
device['person']['name']
.toString()
.trim()
.isNotEmpty
? device['person']['name']
.toString()
: '体征监测设备'.tr) +
"" +
"${device['mac']}" +
"",
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
),
),
].divide(SizedBox(width: 20.rpx)),
@@ -216,7 +231,9 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
height:
33.rpx *
0.6,
color: themeController.currentColor.sc2,
color: themeController
.currentColor
.sc2,
),
),
)