更新首页数据滚动效果
This commit is contained in:
@@ -367,7 +367,13 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
||||
alignment:
|
||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||
child: Text(
|
||||
'${widget.device['person']?['name'] ?? '未命名'.tr}',
|
||||
((widget.device['person']?['name']
|
||||
as String?)
|
||||
?.trim()
|
||||
.isNotEmpty ??
|
||||
false)
|
||||
? widget.device['person']['name']
|
||||
: '体征检测设备'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
|
||||
@@ -335,7 +335,19 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
||||
.width *
|
||||
0.2,
|
||||
child: Text(
|
||||
'${device['person']?['name'] ?? '未命名'.tr}',
|
||||
device['person'] != null &&
|
||||
device['person']
|
||||
['name'] !=
|
||||
null &&
|
||||
device['person']
|
||||
['name']
|
||||
.toString()
|
||||
.trim()
|
||||
.isNotEmpty
|
||||
? device['person']
|
||||
['name']
|
||||
.toString()
|
||||
: '体征检测设备'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
|
||||
@@ -147,7 +147,14 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
|
||||
.width *
|
||||
0.2,
|
||||
child: Text(
|
||||
'${widget.data['person']?['name'] ?? '未命名'.tr}',
|
||||
((widget.data['person']?['name']
|
||||
as String?)
|
||||
?.trim()
|
||||
.isNotEmpty ??
|
||||
false)
|
||||
? widget.data['person']
|
||||
['name']
|
||||
: '体征检测设备'.tr,
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 26.rpx,
|
||||
|
||||
Reference in New Issue
Block a user