更新首页数据滚动效果
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user