更新界面布局

This commit is contained in:
wyf
2025-06-06 15:53:22 +08:00
parent 45b0d8ccb9
commit c9d7fceb98
8 changed files with 323 additions and 194 deletions

View File

@@ -431,7 +431,15 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
CrossAxisAlignment.start,
children: [
Text(
'传感器1号',
(widget.data['person']?['name']
?.toString()
.trim()
.isNotEmpty ??
false)
? widget
.data['person']!['name']
.toString()
: '未知数据'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
@@ -444,7 +452,7 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
),
),
Text(
'69',
'${MyUtils.getAgeByDate(MyUtils.formatBirthdayTime(widget.data['person']?['birthday'])) ?? '未知数据'.tr}',
style:
FlutterFlowTheme.of(context)
.bodyMedium
@@ -511,7 +519,7 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
CrossAxisAlignment.start,
children: [
Text(
'1231212',
'${widget.data['code'] ?? '未知数据'.tr}',
// "D11250300003",
style:
FlutterFlowTheme.of(context)
@@ -523,9 +531,11 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
color: themeController
.currentColor.sc3,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
Text(
'55kg',
'${widget.data['person']?['weight'] ?? '未知数据'.tr}kg',
style:
FlutterFlowTheme.of(context)
.bodyMedium