This commit is contained in:
wyf
2025-11-14 15:12:35 +08:00
parent 7e44998240
commit 18bd13a7b6
18 changed files with 431 additions and 112 deletions

View File

@@ -4,9 +4,11 @@ import 'package:ef/ef.dart';
import 'package:fl_chart/fl_chart.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:flutterflow_ui/flutterflow_ui.dart';
import 'package:vbvs_app/common/color/appConstants.dart';
import 'package:vbvs_app/common/util/FitTool.dart';
import 'package:vbvs_app/common/util/MyUtils.dart';
import 'package:vbvs_app/component/base/THFlutterFlowDropDown.dart';
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
import 'package:vbvs_app/enum/APPPackageType.dart';
import 'package:vbvs_app/pages/device_bind/componnet/bind_dialog.dart';
@@ -174,9 +176,222 @@ class _HeartPointWidgetState extends State<HeartPointWidget> {
),
),
),
// SizedBox(
// height: 31.rpx,
// ),
SizedBox(
height: 31.rpx,
),
Row(
children: [
Text(
"图形参考".tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontSize: AppConstants().middler_text_fontSize),
),
],
),
SizedBox(
height: 31.rpx,
),
// Row(
// // 使用 start 避免 spaceBetween 抵消 divide 的间隔
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// // 第 1 个
// Column(
// mainAxisSize: MainAxisSize.min,
// children: [
// Image.asset(
// "assets/img/heartPic1.png",
// width: 120.rpx,
// height: 120.rpx,
// ),
// SizedBox(height: 10),
// Text(
// '正常心率窦性图'.tr, // ← 替换文字
// style: TextStyle(
// fontSize: AppConstants().small_text_fontSize,
// color: themeController.currentColor.sc3),
// ),
// ],
// ),
// // 第 2 个
// Column(
// mainAxisSize: MainAxisSize.min,
// children: [
// Image.asset(
// "assets/img/heartPic2.png",
// width: 120.rpx,
// height: 120.rpx,
// ),
// SizedBox(height: 10),
// Text(
// '窦性心律不齐图'.tr, // ← 替换文字
// style: TextStyle(
// fontSize: AppConstants().small_text_fontSize,
// color: themeController.currentColor.sc3),
// ),
// ],
// ),
// // 第 3 个
// Column(
// mainAxisSize: MainAxisSize.min,
// children: [
// Image.asset(
// "assets/img/heartPic3.png",
// width: 120.rpx,
// height: 120.rpx,
// ),
// SizedBox(height: 10),
// Text(
// '持续性房颤图'.tr, // ← 替换文字
// style: TextStyle(
// fontSize: AppConstants().small_text_fontSize,
// color: themeController.currentColor.sc3),
// ),
// ],
// ),
// // 第 4 个
// Column(
// mainAxisSize: MainAxisSize.min,
// children: [
// Image.asset(
// "assets/img/heartPic3.png",
// width: 120.rpx,
// height: 120.rpx,
// ),
// SizedBox(height: 10),
// Text(
// '阵法性房颤图'.tr, // ← 替换文字
// style: TextStyle(
// fontSize: AppConstants().small_text_fontSize,
// color: themeController.currentColor.sc3),
// ),
// ],
// ),
// ].divide(
// SizedBox(width: 20.rpx),
// ),
// )
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
// 第 1 个
SizedBox(
width: (MediaQuery.sizeOf(context).width - 60.rpx * 3) / 4,
child: Column(
children: [
Image.asset(
"assets/img/heartPic1.png",
width: 120.rpx,
height: 120.rpx,
),
SizedBox(height: 10),
SizedBox(
height: 60.rpx, // 👈 固定说明文字高度
child: Text(
'正常心率窦性图'.tr,
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: AppConstants().small_text_fontSize,
color: themeController.currentColor.sc3,
),
),
),
],
),
),
// 第 2 个
SizedBox(
width: (MediaQuery.sizeOf(context).width - 60.rpx * 3) / 4,
child: Column(
children: [
Image.asset(
"assets/img/heartPic2.png",
width: 120.rpx,
height: 120.rpx,
),
SizedBox(height: 10),
SizedBox(
height: 60.rpx,
child: Text(
'窦性心律不齐图'.tr,
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: AppConstants().small_text_fontSize,
color: themeController.currentColor.sc3,
),
),
),
],
),
),
// 第 3 个
SizedBox(
width: (MediaQuery.sizeOf(context).width - 60.rpx * 3) / 4,
child: Column(
children: [
Image.asset(
"assets/img/heartPic3.png",
width: 120.rpx,
height: 120.rpx,
),
SizedBox(height: 10),
SizedBox(
height: 60.rpx,
child: Text(
'持续性房颤图'.tr,
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: AppConstants().small_text_fontSize,
color: themeController.currentColor.sc3,
),
),
),
],
),
),
// 第 4 个
SizedBox(
width: (MediaQuery.sizeOf(context).width - 60.rpx * 3) / 4,
child: Column(
children: [
Image.asset(
"assets/img/heartPic3.png",
width: 120.rpx,
height: 120.rpx,
),
SizedBox(height: 10),
SizedBox(
height: 60.rpx,
child: Text(
'阵法性房颤图'.tr,
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: TextAlign.center,
style: TextStyle(
fontSize: AppConstants().small_text_fontSize,
color: themeController.currentColor.sc3,
),
),
),
],
),
),
].divide(SizedBox(width: 20.rpx)),
),
],
),
),