更新法语语言包
This commit is contained in:
@@ -1,361 +1,3 @@
|
||||
// import 'dart:math';
|
||||
// import 'dart:ui' as ui;
|
||||
|
||||
// import 'package:ef/ef.dart';
|
||||
// import 'package:flutter/material.dart';
|
||||
// import 'package:intl/intl.dart';
|
||||
// import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
// import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
|
||||
// class LineChartByRange extends StatefulWidget {
|
||||
// final List<Map<String, dynamic>> showLabel;
|
||||
// final int startTime;
|
||||
// final int endTime;
|
||||
// final int? threshold;
|
||||
|
||||
// /// 新增外部指定的 Y 轴最大值
|
||||
// final int maxY;
|
||||
|
||||
// /// Y 轴分段数,默认6段
|
||||
// final int ySegments;
|
||||
|
||||
// const LineChartByRange({
|
||||
// Key? key,
|
||||
// required this.showLabel,
|
||||
// required this.startTime,
|
||||
// required this.endTime,
|
||||
// required this.maxY,
|
||||
// this.threshold,
|
||||
// this.ySegments = 6,
|
||||
// }) : super(key: key);
|
||||
|
||||
// @override
|
||||
// State<LineChartByRange> createState() => _LineChartByRangeState();
|
||||
// }
|
||||
|
||||
// class _LineChartByRangeState extends State<LineChartByRange> {
|
||||
// Offset? selectedOffset;
|
||||
// Map<String, dynamic>? selectedData;
|
||||
|
||||
// @override
|
||||
// Widget build(BuildContext context) {
|
||||
// if (widget.showLabel.isEmpty) return const SizedBox();
|
||||
|
||||
// DateTime minTime = DateTime.fromMillisecondsSinceEpoch(widget.startTime);
|
||||
// DateTime maxTime = DateTime.fromMillisecondsSinceEpoch(widget.endTime);
|
||||
|
||||
// return GestureDetector(
|
||||
// onTapDown: (details) {
|
||||
// RenderBox box = context.findRenderObject() as RenderBox;
|
||||
// final localPosition = box.globalToLocal(details.globalPosition);
|
||||
|
||||
// // 查找是否点击到某个点
|
||||
// for (var item in widget.showLabel) {
|
||||
// int start = item['startTime'];
|
||||
// int end = item['endTime'];
|
||||
// int times = item['times'];
|
||||
|
||||
// double chartWidth = box.size.width - 40.rpx; // 与 painter 内一致处理
|
||||
// double chartHeight = box.size.height - 30.rpx;
|
||||
// double xStart = 20.rpx + 12.rpx;
|
||||
|
||||
// int totalDuration =
|
||||
// maxTime.millisecondsSinceEpoch - minTime.millisecondsSinceEpoch;
|
||||
|
||||
// double startX = xStart +
|
||||
// chartWidth *
|
||||
// (start - minTime.millisecondsSinceEpoch) /
|
||||
// totalDuration;
|
||||
// double y = chartHeight * (1 - times / widget.maxY);
|
||||
|
||||
// // 判断点击范围(圆点半径±6.rpx范围)
|
||||
// if ((localPosition - Offset(startX, y)).distance < 10.rpx) {
|
||||
// setState(() {
|
||||
// selectedOffset = Offset(startX, y);
|
||||
// selectedData = item;
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
|
||||
// double endX = xStart +
|
||||
// chartWidth *
|
||||
// (end - minTime.millisecondsSinceEpoch) /
|
||||
// totalDuration;
|
||||
// if ((localPosition - Offset(endX, y)).distance < 10.rpx) {
|
||||
// setState(() {
|
||||
// selectedOffset = Offset(endX, y);
|
||||
// selectedData = item;
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
|
||||
// // 没点到,清除选中
|
||||
// setState(() {
|
||||
// selectedOffset = null;
|
||||
// selectedData = null;
|
||||
// });
|
||||
// },
|
||||
// child: Stack(
|
||||
// children: [
|
||||
// SizedBox(
|
||||
// height: 500.rpx,
|
||||
// child: CustomPaint(
|
||||
// size: Size(double.infinity, 500.rpx),
|
||||
// painter: _LineChartByRangePainter(
|
||||
// data: widget.showLabel,
|
||||
// maxY: widget.maxY,
|
||||
// minTime: minTime,
|
||||
// maxTime: maxTime,
|
||||
// threshold: widget.threshold,
|
||||
// ySegments: widget.ySegments,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// if (selectedOffset != null && selectedData != null)
|
||||
// Positioned(
|
||||
// left: selectedOffset!.dx - 60.rpx,
|
||||
// top: selectedOffset!.dy - 50.rpx,
|
||||
// child: Container(
|
||||
// padding:
|
||||
// EdgeInsets.symmetric(horizontal: 12.rpx, vertical: 8.rpx),
|
||||
// decoration: BoxDecoration(
|
||||
// color: Colors.black.withOpacity(0.3),
|
||||
// borderRadius: BorderRadius.circular(10.rpx),
|
||||
// ),
|
||||
// child: Text(
|
||||
// '${DateFormat('HH:mm').format(DateTime.fromMillisecondsSinceEpoch(selectedData!['startTime']))} - '
|
||||
// '${DateFormat('HH:mm').format(DateTime.fromMillisecondsSinceEpoch(selectedData!['endTime']))}\n'
|
||||
// "时长"
|
||||
// .tr +
|
||||
// ' ${selectedData!['times']}',
|
||||
// style: TextStyle(
|
||||
// fontSize: 18.rpx,
|
||||
// color: Colors.white,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
|
||||
// class _LineChartByRangePainter extends CustomPainter {
|
||||
// final List<Map<String, dynamic>> data;
|
||||
// final int maxY;
|
||||
// final DateTime minTime;
|
||||
// final DateTime maxTime;
|
||||
// final int? threshold;
|
||||
// final int ySegments;
|
||||
|
||||
// _LineChartByRangePainter({
|
||||
// required this.data,
|
||||
// required this.maxY,
|
||||
// required this.minTime,
|
||||
// required this.maxTime,
|
||||
// this.threshold,
|
||||
// this.ySegments = 6,
|
||||
// });
|
||||
|
||||
// @override
|
||||
// void paint(Canvas canvas, Size size) {
|
||||
// double padding = 20.rpx;
|
||||
// double labelInset = 12.rpx;
|
||||
|
||||
// final double xStart = padding + labelInset;
|
||||
// final double xEnd = size.width - padding - labelInset;
|
||||
// final double chartWidth = xEnd - xStart;
|
||||
|
||||
// double chartHeight = size.height - 30.rpx;
|
||||
|
||||
// int totalDuration =
|
||||
// maxTime.millisecondsSinceEpoch - minTime.millisecondsSinceEpoch;
|
||||
// if (totalDuration <= 0) return;
|
||||
|
||||
// Paint axisPaint = Paint()
|
||||
// ..color = Colors.grey.withOpacity(0.4)
|
||||
// ..strokeWidth = 1.rpx;
|
||||
|
||||
// Paint thresholdPaint = Paint()
|
||||
// ..color = themeController.currentColor.sc9
|
||||
// ..strokeWidth = 1.rpx;
|
||||
|
||||
// // 阈值虚线(红色)
|
||||
// if (threshold != null && threshold! >= 0 && threshold! <= maxY) {
|
||||
// double yThreshold = chartHeight * (1 - threshold! / maxY);
|
||||
// drawDashedLine(
|
||||
// canvas,
|
||||
// Offset(xStart, yThreshold),
|
||||
// Offset(xEnd, yThreshold),
|
||||
// thresholdPaint,
|
||||
// dashWidth: 8.rpx,
|
||||
// dashSpace: 6.rpx,
|
||||
// );
|
||||
// }
|
||||
|
||||
// // 绘制数据线段和圆点
|
||||
// for (var item in data) {
|
||||
// int start = item['startTime'];
|
||||
// int end = item['endTime'];
|
||||
// // int times = item['times'];
|
||||
// int times = item['times'];
|
||||
|
||||
// double startX = xStart * 2 +
|
||||
// chartWidth * (start - minTime.millisecondsSinceEpoch) / totalDuration;
|
||||
// double endX = xStart * 2 +
|
||||
// chartWidth * (end - minTime.millisecondsSinceEpoch) / totalDuration;
|
||||
// double y = chartHeight * (1 - times / maxY);
|
||||
|
||||
// // 设置颜色(根据 threshold 判断)
|
||||
// Color pointColor;
|
||||
// if (threshold != null && times >= threshold!) {
|
||||
// pointColor = themeController.currentColor.sc9;
|
||||
// } else {
|
||||
// pointColor = stringToColor("#00C1AA");
|
||||
// }
|
||||
|
||||
// Paint dynamicLinePaint = Paint()
|
||||
// ..style = PaintingStyle.stroke
|
||||
// ..strokeWidth = 3.rpx
|
||||
// ..color = pointColor
|
||||
// ..strokeCap = StrokeCap.round;
|
||||
|
||||
// Paint dynamicCirclePaint = Paint()
|
||||
// ..style = PaintingStyle.fill
|
||||
// ..color = pointColor;
|
||||
|
||||
// // 画线段
|
||||
// canvas.drawLine(Offset(startX, y), Offset(endX, y), dynamicLinePaint);
|
||||
|
||||
// // 画起点和终点圆点
|
||||
// canvas.drawCircle(Offset(startX, y), 6.rpx, dynamicCirclePaint);
|
||||
// canvas.drawCircle(Offset(endX, y), 6.rpx, dynamicCirclePaint);
|
||||
// }
|
||||
|
||||
// // Y轴辅助线和文字
|
||||
// for (int i = 0; i <= ySegments; i++) {
|
||||
// double y = chartHeight * i / ySegments;
|
||||
|
||||
// if (i == ySegments) {
|
||||
// canvas.drawLine(Offset(xStart, y), Offset(xEnd, y), axisPaint);
|
||||
// } else {
|
||||
// drawDashedLine(
|
||||
// canvas,
|
||||
// Offset(xStart, y),
|
||||
// Offset(xEnd, y),
|
||||
// axisPaint,
|
||||
// dashWidth: 8.rpx,
|
||||
// dashSpace: 6.rpx,
|
||||
// );
|
||||
// }
|
||||
|
||||
// TextPainter tp = TextPainter(
|
||||
// text: TextSpan(
|
||||
// text: '${maxY - (maxY * i / ySegments).round()}',
|
||||
// style: TextStyle(
|
||||
// fontSize: 18.rpx,
|
||||
// color: themeController.currentColor.sc4,
|
||||
// ),
|
||||
// ),
|
||||
// textDirection: ui.TextDirection.ltr,
|
||||
// );
|
||||
// tp.layout();
|
||||
// tp.paint(canvas, Offset(0, y - tp.height / 2));
|
||||
// }
|
||||
|
||||
// // X轴主线
|
||||
// canvas.drawLine(
|
||||
// Offset(xStart, chartHeight),
|
||||
// Offset(xEnd, chartHeight),
|
||||
// axisPaint,
|
||||
// );
|
||||
|
||||
// // X轴时间文字(左右两侧)
|
||||
// String leftLabel = DateFormat('HH:mm').format(minTime);
|
||||
// TextPainter leftTp = TextPainter(
|
||||
// text: TextSpan(
|
||||
// text: leftLabel,
|
||||
// style: TextStyle(
|
||||
// fontSize: 18.rpx,
|
||||
// color: themeController.currentColor.sc4,
|
||||
// ),
|
||||
// ),
|
||||
// textDirection: ui.TextDirection.ltr,
|
||||
// );
|
||||
// leftTp.layout();
|
||||
// leftTp.paint(canvas,
|
||||
// Offset(padding + labelInset - leftTp.width / 2, chartHeight + 8.rpx));
|
||||
|
||||
// String rightLabel = DateFormat('HH:mm').format(maxTime);
|
||||
// TextPainter rightTp = TextPainter(
|
||||
// text: TextSpan(
|
||||
// text: rightLabel,
|
||||
// style: TextStyle(
|
||||
// fontSize: 18.rpx,
|
||||
// color: themeController.currentColor.sc4,
|
||||
// ),
|
||||
// ),
|
||||
// textDirection: ui.TextDirection.ltr,
|
||||
// );
|
||||
// rightTp.layout();
|
||||
// rightTp.paint(
|
||||
// canvas,
|
||||
// Offset(size.width - padding - labelInset - rightTp.width / 2,
|
||||
// chartHeight + 8.rpx));
|
||||
|
||||
// // 中间小时刻度
|
||||
// int totalHours = maxTime.difference(minTime).inHours + 1;
|
||||
// int startHour = minTime.hour;
|
||||
|
||||
// for (int i = 1; i < totalHours; i++) {
|
||||
// double x = xStart + chartWidth * i / totalHours;
|
||||
|
||||
// int hourLabelNum = (startHour + i) % 24;
|
||||
// String hourLabel = '$hourLabelNum';
|
||||
|
||||
// TextPainter tp = TextPainter(
|
||||
// text: TextSpan(
|
||||
// text: hourLabel,
|
||||
// style: TextStyle(
|
||||
// fontSize: 18.rpx,
|
||||
// color: themeController.currentColor.sc4,
|
||||
// ),
|
||||
// ),
|
||||
// textDirection: ui.TextDirection.ltr,
|
||||
// );
|
||||
// tp.layout();
|
||||
// tp.paint(canvas, Offset(x - tp.width / 2, chartHeight + 8.rpx));
|
||||
// }
|
||||
// }
|
||||
|
||||
// @override
|
||||
// bool shouldRepaint(covariant CustomPainter oldDelegate) => true;
|
||||
|
||||
// void drawDashedLine(
|
||||
// Canvas canvas,
|
||||
// Offset start,
|
||||
// Offset end,
|
||||
// Paint paint, {
|
||||
// required double dashWidth,
|
||||
// required double dashSpace,
|
||||
// }) {
|
||||
// final dx = end.dx - start.dx;
|
||||
// final dy = end.dy - start.dy;
|
||||
// final distance = sqrt(dx * dx + dy * dy);
|
||||
// final direction = Offset(dx / distance, dy / distance);
|
||||
|
||||
// double drawn = 0;
|
||||
// while (drawn < distance) {
|
||||
// final from = start + direction * drawn;
|
||||
// final to = start + direction * (drawn + dashWidth).clamp(0, distance);
|
||||
// canvas.drawLine(from, to, paint);
|
||||
// drawn += dashWidth + dashSpace;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
import 'dart:math';
|
||||
import 'dart:ui' as ui;
|
||||
|
||||
@@ -559,10 +201,14 @@ class _LineChartByRangePainter extends CustomPainter {
|
||||
int end = item['endTime'];
|
||||
int times = item['times'];
|
||||
|
||||
double startX = xStart * 2 +
|
||||
double startX = xStart +
|
||||
chartWidth * (start - minTime.millisecondsSinceEpoch) / totalDuration;
|
||||
double endX = xStart * 2 +
|
||||
double endX = xStart +
|
||||
chartWidth * (end - minTime.millisecondsSinceEpoch) / totalDuration;
|
||||
|
||||
if (startX == endX) {
|
||||
endX = startX + 2.rpx; // 至少显示 2.rpx 的线段
|
||||
}
|
||||
double y = chartHeight * (1 - times / maxY);
|
||||
|
||||
// 设置颜色(根据 threshold 判断)
|
||||
|
||||
@@ -40,33 +40,35 @@ class _BreatheStandardWidgetState extends State<BreatheStandardWidget> {
|
||||
if (dataPoints.isEmpty) {
|
||||
return (8.0, 20.0);
|
||||
}
|
||||
|
||||
|
||||
// 过滤掉无效数据点(值为-1的)
|
||||
final validPoints = dataPoints.where((point) => point.value >= 0).toList();
|
||||
|
||||
|
||||
if (validPoints.isEmpty) {
|
||||
return (8.0, 20.0);
|
||||
}
|
||||
|
||||
|
||||
// 找出数据中的实际最小值和最大值
|
||||
double dataMin = validPoints.map((point) => point.value).reduce((a, b) => a < b ? a : b);
|
||||
double dataMax = validPoints.map((point) => point.value).reduce((a, b) => a > b ? a : b);
|
||||
|
||||
double dataMin =
|
||||
validPoints.map((point) => point.value).reduce((a, b) => a < b ? a : b);
|
||||
double dataMax =
|
||||
validPoints.map((point) => point.value).reduce((a, b) => a > b ? a : b);
|
||||
|
||||
// 设置默认范围
|
||||
double yMin = 8.0;
|
||||
double yMax = 20.0;
|
||||
|
||||
|
||||
// 如果数据范围超出了默认范围,则调整
|
||||
if (dataMin < yMin) {
|
||||
// 最小值为0,不能为负数,且向下浮动2
|
||||
yMin = (dataMin - 2).clamp(0.0, double.infinity);
|
||||
}
|
||||
|
||||
|
||||
if (dataMax > yMax) {
|
||||
// 向上浮动2
|
||||
yMax = dataMax + 2;
|
||||
}
|
||||
|
||||
|
||||
return (yMin, yMax);
|
||||
}
|
||||
|
||||
@@ -102,7 +104,7 @@ class _BreatheStandardWidgetState extends State<BreatheStandardWidget> {
|
||||
|
||||
List<Map<String, dynamic>> brs =
|
||||
(widget.sleepReport['brs'] as List).cast<Map<String, dynamic>>();
|
||||
|
||||
|
||||
Map<String, dynamic>? avgBreath = brs.firstWhere(
|
||||
(element) => element['id'] == 307,
|
||||
orElse: () => {},
|
||||
@@ -139,8 +141,8 @@ class _BreatheStandardWidgetState extends State<BreatheStandardWidget> {
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
color: themeController.currentColor.sc5,
|
||||
borderRadius: BorderRadius.circular(
|
||||
AppConstants().normal_container_radius),
|
||||
borderRadius:
|
||||
BorderRadius.circular(AppConstants().normal_container_radius),
|
||||
),
|
||||
child: Padding(
|
||||
padding:
|
||||
@@ -205,8 +207,8 @@ class _BreatheStandardWidgetState extends State<BreatheStandardWidget> {
|
||||
}
|
||||
},
|
||||
child: Container(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
0, 0.rpx, 0.rpx, 0),
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 0.rpx, 0.rpx, 0),
|
||||
width: 28.rpx,
|
||||
height: 28.rpx,
|
||||
child: SvgPicture.asset(
|
||||
@@ -242,8 +244,7 @@ class _BreatheStandardWidgetState extends State<BreatheStandardWidget> {
|
||||
Text(
|
||||
'正常范围'.tr + "${range}",
|
||||
style: TextStyle(
|
||||
fontSize:
|
||||
AppConstants().smaller_text_fontSize,
|
||||
fontSize: AppConstants().smaller_text_fontSize,
|
||||
color: themeController.currentColor.sc3,
|
||||
),
|
||||
),
|
||||
@@ -264,150 +265,162 @@ class _BreatheStandardWidgetState extends State<BreatheStandardWidget> {
|
||||
)),
|
||||
),
|
||||
),
|
||||
// Padding(
|
||||
// padding:
|
||||
// EdgeInsetsDirectional.fromSTEB(0.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
// child: Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
// children: [
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${avgBreath['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().normal_text_fontSize),
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${avgBreath['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// ),
|
||||
// Text(
|
||||
// "${avgBreath['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().small_text_fontSize),
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${baseBreath['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${baseBreath['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Text(
|
||||
// "${baseBreath['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().small_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${minBreath['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${minBreath['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Text(
|
||||
// "${minBreath['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().small_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${maxBreath['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${maxBreath['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Text(
|
||||
// "${maxBreath['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().small_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${avgBreath['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().normal_text_fontSize),
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${avgBreath['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
),
|
||||
Text(
|
||||
"${avgBreath['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().small_text_fontSize),
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${baseBreath['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${baseBreath['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Text(
|
||||
"${baseBreath['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().small_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${minBreath['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${minBreath['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Text(
|
||||
"${minBreath['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().small_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${maxBreath['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${maxBreath['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Text(
|
||||
"${maxBreath['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().small_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
_buildBreathItem(avgBreath),
|
||||
_buildBreathItem(baseBreath),
|
||||
_buildBreathItem(minBreath),
|
||||
_buildBreathItem(maxBreath),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -420,4 +433,70 @@ class _BreatheStandardWidgetState extends State<BreatheStandardWidget> {
|
||||
return Container();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildBreathItem(Map<String, dynamic> data) {
|
||||
return Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 4.rpx, vertical: 4.rpx),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
// 名称 - 最多2行
|
||||
Flexible(
|
||||
child: Text(
|
||||
"${data['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().normal_text_fontSize,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 4.rpx),
|
||||
// 值 + 单位 - 最多2行
|
||||
Flexible(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Flexible(
|
||||
fit: FlexFit.loose,
|
||||
child: Text(
|
||||
"${data['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize: AppConstants().normal_text_fontSize,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 4.rpx),
|
||||
Flexible(
|
||||
fit: FlexFit.loose,
|
||||
child: Text(
|
||||
"${data['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().small_text_fontSize,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,11 +61,15 @@ class _DiseasePercentsWidgetState extends State<DiseasePercentsWidget> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"慢性病风险指数".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
Expanded(
|
||||
child: Text(
|
||||
"慢性病风险指数".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
@@ -76,7 +80,8 @@ class _DiseasePercentsWidgetState extends State<DiseasePercentsWidget> {
|
||||
onTap: () {
|
||||
// 你的点击逻辑
|
||||
|
||||
if (AppConstants().ent_type == APPPackageType.MHT.code) {
|
||||
if (AppConstants().ent_type ==
|
||||
APPPackageType.MHT.code) {
|
||||
showTipDialog(
|
||||
context,
|
||||
Container(
|
||||
|
||||
@@ -63,11 +63,15 @@ class _HeartChangeWidgetState extends State<HeartChangeWidget> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"心率变异性(HRV)".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
Expanded(
|
||||
child: Text(
|
||||
"心率变异性(HRV)".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
|
||||
@@ -82,7 +82,6 @@ class _HeartHealthWidgetState extends State<HeartHealthWidget> {
|
||||
context,
|
||||
Container(
|
||||
child: Text(
|
||||
// "心理健康评估介绍".tr,
|
||||
"心率健康评估主要通过用户睡眠报告中的时间点、体征数据及HRV数据等信息,来判断其心理健康水平、疲劳程度。"
|
||||
.tr,
|
||||
style: TextStyle(
|
||||
@@ -140,11 +139,17 @@ class _HeartHealthWidgetState extends State<HeartHealthWidget> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
FatigueCircleIndicator(
|
||||
data: showLabel[0],
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: FatigueCircleIndicator(
|
||||
data: showLabel[0],
|
||||
),
|
||||
),
|
||||
FatigueCircleIndicator(
|
||||
data: showLabel[1],
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: FatigueCircleIndicator(
|
||||
data: showLabel[1],
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 110.rpx,
|
||||
|
||||
@@ -82,11 +82,15 @@ class _HeartPointWidgetState extends State<HeartPointWidget> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"心率散点图".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
Expanded(
|
||||
child: Text(
|
||||
"心率散点图".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
),
|
||||
),
|
||||
ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
|
||||
@@ -249,158 +249,170 @@ class _HeartRateStandardWidgetState extends State<HeartRateStandardWidget> {
|
||||
// actYMax: max.toDouble(),
|
||||
),
|
||||
),
|
||||
// Padding(
|
||||
// padding: EdgeInsetsDirectional.fromSTEB(
|
||||
// 30.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
// child: Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
// children: [
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${avgHeartRate['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${avgHeartRate['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize: AppConstants()
|
||||
// .normal_text_fontSize),
|
||||
// ),
|
||||
// Text(
|
||||
// "${avgHeartRate['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().small_text_fontSize),
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${baseHeartRate['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${baseHeartRate['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize: AppConstants()
|
||||
// .normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Text(
|
||||
// "${baseHeartRate['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().small_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${minHeartRate['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${minHeartRate['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize: AppConstants()
|
||||
// .normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Text(
|
||||
// "${minHeartRate['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().small_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Column(
|
||||
// children: [
|
||||
// Text(
|
||||
// "${maxHeartRate['name']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Row(
|
||||
// crossAxisAlignment: CrossAxisAlignment.end,
|
||||
// children: [
|
||||
// Text(
|
||||
// "${maxHeartRate['value']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc2,
|
||||
// fontSize: AppConstants()
|
||||
// .normal_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// Text(
|
||||
// "${maxHeartRate['unit']}",
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize:
|
||||
// AppConstants().small_text_fontSize),
|
||||
// maxLines: 1,
|
||||
// overflow: TextOverflow.ellipsis,
|
||||
// ),
|
||||
// ].divide(SizedBox(
|
||||
// width: 6.rpx,
|
||||
// )),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
Padding(
|
||||
padding: EdgeInsetsDirectional.fromSTEB(
|
||||
30.rpx, 0.rpx, 0.rpx, 0.rpx),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
children: [
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${avgHeartRate['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${avgHeartRate['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize: AppConstants()
|
||||
.normal_text_fontSize),
|
||||
),
|
||||
Text(
|
||||
"${avgHeartRate['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().small_text_fontSize),
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${baseHeartRate['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${baseHeartRate['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize: AppConstants()
|
||||
.normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Text(
|
||||
"${baseHeartRate['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().small_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${minHeartRate['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${minHeartRate['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize: AppConstants()
|
||||
.normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Text(
|
||||
"${minHeartRate['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().small_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
Column(
|
||||
children: [
|
||||
Text(
|
||||
"${maxHeartRate['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Text(
|
||||
"${maxHeartRate['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize: AppConstants()
|
||||
.normal_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
Text(
|
||||
"${maxHeartRate['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize:
|
||||
AppConstants().small_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
].divide(SizedBox(
|
||||
width: 6.rpx,
|
||||
)),
|
||||
),
|
||||
],
|
||||
),
|
||||
_buildHeartRateItem(avgHeartRate),
|
||||
_buildHeartRateItem(baseHeartRate),
|
||||
_buildHeartRateItem(minHeartRate),
|
||||
_buildHeartRateItem(maxHeartRate),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -418,4 +430,70 @@ class _HeartRateStandardWidgetState extends State<HeartRateStandardWidget> {
|
||||
return Container();
|
||||
}
|
||||
}
|
||||
|
||||
Widget _buildHeartRateItem(Map<String, dynamic> data) {
|
||||
return Expanded(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 4.rpx, vertical: 4.rpx),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
// 名称 - 最多2行
|
||||
Flexible(
|
||||
child: Text(
|
||||
"${data['name']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().normal_text_fontSize,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 4.rpx),
|
||||
// 值 + 单位 - 最多2行
|
||||
Flexible(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Flexible(
|
||||
fit: FlexFit.loose,
|
||||
child: Text(
|
||||
"${data['value']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc2,
|
||||
fontSize: AppConstants().normal_text_fontSize,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
SizedBox(width: 6.rpx),
|
||||
Flexible(
|
||||
fit: FlexFit.loose,
|
||||
child: Text(
|
||||
"${data['unit']}",
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().small_text_fontSize,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,6 @@ class _SkinPercentWidgetState extends State<SkinPercentWidget> {
|
||||
context,
|
||||
Container(
|
||||
child: Text(
|
||||
// "心理健康评估介绍".tr,
|
||||
"皮肤指数通过用户睡眠过程中的体征数据,计算皮肤电反应,生成综合评估指标,用于睡眠中的生理应激状态或自主神经活动。"
|
||||
.tr,
|
||||
style: TextStyle(
|
||||
|
||||
@@ -37,11 +37,15 @@ class SleepChartContainer extends StatelessWidget {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 30.rpx,
|
||||
Expanded(
|
||||
child: Text(
|
||||
title,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 30.rpx,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
ClickableContainer(
|
||||
|
||||
@@ -158,6 +158,8 @@ class _SleepScoreWidgetState extends State<SleepScoreWidget> {
|
||||
fontSize:
|
||||
AppConstants().normal_text_fontSize,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
Text(
|
||||
|
||||
@@ -1,380 +1,3 @@
|
||||
// import 'package:EasyDartModule/EasyDartModule.dart' as es;
|
||||
// import 'package:ef/ef.dart';
|
||||
// import 'package:flutter/material.dart';
|
||||
// import 'package:flutter_svg/svg.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/tool/ClickableContainer.dart';
|
||||
// import 'package:vbvs_app/enum/APPPackageType.dart';
|
||||
// import 'package:vbvs_app/pages/device_bind/componnet/bind_dialog.dart';
|
||||
// import 'package:vbvs_app/pages/sleep_report/chart/SnoreChart.dart';
|
||||
|
||||
// class SnoreViewWidgetWidget extends StatefulWidget {
|
||||
// var sleepReport;
|
||||
// SnoreViewWidgetWidget({super.key, required this.sleepReport});
|
||||
|
||||
// @override
|
||||
// State<SnoreViewWidgetWidget> createState() => _SnoreViewWidgetWidgetState();
|
||||
// }
|
||||
|
||||
// class _SnoreViewWidgetWidgetState extends State<SnoreViewWidgetWidget> {
|
||||
// @override
|
||||
// void setState(VoidCallback callback) {
|
||||
// super.setState(callback);
|
||||
// }
|
||||
|
||||
// @override
|
||||
// void initState() {
|
||||
// super.initState();
|
||||
// }
|
||||
|
||||
// @override
|
||||
// void dispose() {
|
||||
// super.dispose();
|
||||
// }
|
||||
|
||||
// @override
|
||||
// Widget build(BuildContext context) {
|
||||
// try {
|
||||
// if (widget.sleepReport == null ||
|
||||
// widget.sleepReport is! Map ||
|
||||
// widget.sleepReport.isEmpty) {
|
||||
// return Container();
|
||||
// }
|
||||
// // if (APPPackageType.TH.code == AppConstants().ent_type) {
|
||||
// // return Container();
|
||||
// // }
|
||||
// double maxY = 250;
|
||||
// var startTime = widget.sleepReport['startTime'];
|
||||
// var endTime = widget.sleepReport['endTime'];
|
||||
// List snoreValues = [];
|
||||
|
||||
// List type = widget.sleepReport['ssp']['type'];
|
||||
// List lightSnore = widget.sleepReport['ssp']['data'][0];
|
||||
// List heavySnore = widget.sleepReport['ssp']['data'][1];
|
||||
|
||||
// // lightSnore = [
|
||||
// // ...lightSnore,
|
||||
// // {
|
||||
// // 'st': widget.sleepReport['startTime'] + 2 * 60 * 60 * 1000, // 开始后2小时
|
||||
// // 'et': widget.sleepReport['startTime'] + 2 * 60 * 65 * 1000, // 持续5分钟
|
||||
// // 'value': 25,
|
||||
// // },
|
||||
// // {
|
||||
// // 'st': widget.sleepReport['startTime'] + 4 * 60 * 60 * 1000, // 开始后4小时
|
||||
// // 'et': widget.sleepReport['startTime'] + 4 * 60 * 68 * 1000, // 持续8分钟
|
||||
// // 'value': 18,
|
||||
// // }
|
||||
// // ];
|
||||
|
||||
// // // 添加模拟数据到重度打鼾列表
|
||||
// // heavySnore = [
|
||||
// // ...heavySnore,
|
||||
// // {
|
||||
// // 'st': widget.sleepReport['startTime'] + 3 * 60 * 60 * 1000, // 开始后3小时
|
||||
// // 'et': widget.sleepReport['startTime'] + 3 * 60 * 62 * 1000, // 持续2分钟
|
||||
// // 'value': 68,
|
||||
// // },
|
||||
// // {
|
||||
// // 'st': widget.sleepReport['startTime'] + 5 * 60 * 60 * 1000, // 开始后5小时
|
||||
// // 'et': widget.sleepReport['startTime'] + 5 * 60 * 64 * 1000, // 持续4分钟
|
||||
// // 'value': 72,
|
||||
// // }
|
||||
// // ];
|
||||
|
||||
// List<Map> processedLightSnore = lightSnore.map((item) {
|
||||
// return {
|
||||
// ...item,
|
||||
// 'id': type[0]['id'],
|
||||
// 'name': type[0]['name'],
|
||||
// 'color': type[0]['color'],
|
||||
// };
|
||||
// }).toList();
|
||||
|
||||
// List<Map> processedHeavySnore = heavySnore.map((item) {
|
||||
// return {
|
||||
// ...item,
|
||||
// 'id': type[1]['id'],
|
||||
// 'name': type[1]['name'],
|
||||
// 'color': type[1]['color'],
|
||||
// };
|
||||
// }).toList();
|
||||
|
||||
// snoreValues = [...processedLightSnore, ...processedHeavySnore];
|
||||
// snoreValues.sort((a, b) => a['st'].compareTo(b['st']));
|
||||
// print(snoreValues);
|
||||
// List<BarData> barDataList = snoreValues.map<BarData>((item) {
|
||||
// return BarData(
|
||||
// st: item['st'],
|
||||
// et: item['et'],
|
||||
// value: (item['value'] as num).toDouble() > maxY
|
||||
// ? maxY + 3
|
||||
// : (item['value'] as num).toDouble(),
|
||||
// id: item['id'],
|
||||
// name: item['name'],
|
||||
// color: (item['color'] == null || item['color'].isEmpty)
|
||||
// ? (item['id'] == 1 ? Colors.green : Colors.red)
|
||||
// : stringToColor(item['color']),
|
||||
// );
|
||||
// }).toList();
|
||||
|
||||
// // List<Map<String, dynamic>> data =
|
||||
// // (widget.sleepReport['ssp'] as List).cast<Map<String, dynamic>>();
|
||||
// // List<Map<String, dynamic>> showLabel = convertToShowLabel(data);
|
||||
|
||||
// return Container(
|
||||
// width: double.infinity,
|
||||
// decoration: BoxDecoration(
|
||||
// color: themeController.currentColor.sc5,
|
||||
// borderRadius: BorderRadius.circular(
|
||||
// AppConstants().normal_container_radius), // 你可以按需调整圆角半径
|
||||
// ),
|
||||
// child: Padding(
|
||||
// padding:
|
||||
// EdgeInsetsDirectional.fromSTEB(26.rpx, 29.rpx, 26.rpx, 0.rpx),
|
||||
// child: Column(
|
||||
// mainAxisSize: MainAxisSize.max,
|
||||
// children: [
|
||||
// Container(
|
||||
// child: Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
// children: [
|
||||
// Text(
|
||||
// "打鼾监测".tr,
|
||||
// style: TextStyle(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontSize: AppConstants().title_text_fontSize),
|
||||
// ),
|
||||
// ClickableContainer(
|
||||
// backgroundColor: Colors.transparent,
|
||||
// highlightColor: Colors.white, // 或设置为你需要的水波纹颜色
|
||||
// padding: EdgeInsetsDirectional.fromSTEB(
|
||||
// 14.rpx, 10.rpx, 14.rpx, 10.rpx), //
|
||||
// borderRadius: 0.rpx, // 圆形点击区域
|
||||
// onTap: () {
|
||||
// if (AppConstants().ent_type ==
|
||||
// APPPackageType.MHT.code) {
|
||||
// showTipDialog(
|
||||
// context,
|
||||
// Container(
|
||||
// child: Text(
|
||||
// // "打鼾监测介绍。",
|
||||
// "打鼾监测是指用户在睡眠过程中打鼾频次的图表说明。".tr,
|
||||
// style: TextStyle(
|
||||
// fontSize: 26.rpx,
|
||||
// color: Colors.black,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// backgroundColor: Color(0xFFFFFFFF),
|
||||
// colors: [
|
||||
// Color(0XFF1592AA),
|
||||
// Color(0xFF0C83A7),
|
||||
// Color(0xFF006FA3)
|
||||
// ],
|
||||
// );
|
||||
// } else {
|
||||
// showTipDialog(
|
||||
// context,
|
||||
// Container(
|
||||
// child: Text(
|
||||
// "打鼾监测是指用户在睡眠过程中打鼾频次的图表说明。".tr,
|
||||
// style: TextStyle(
|
||||
// fontSize: 26.rpx,
|
||||
// color: themeController.currentColor.sc3,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// backgroundColor: themeController.currentColor.sc17,
|
||||
// colors: AppConstants().thNormalButton,
|
||||
// );
|
||||
// }
|
||||
// },
|
||||
// child: Container(
|
||||
// padding: EdgeInsetsDirectional.fromSTEB(
|
||||
// 0, 0.rpx, 0.rpx, 0), // 外部 padding 移到内部
|
||||
// width: 28.rpx,
|
||||
// height: 28.rpx,
|
||||
// child: SvgPicture.asset(
|
||||
// 'assets/img/icon/explain.svg',
|
||||
// fit: BoxFit.cover,
|
||||
// color: themeController.currentColor.sc4,
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(
|
||||
// height: 32.rpx,
|
||||
// ),
|
||||
// Row(
|
||||
// children: [
|
||||
// Text(
|
||||
// "次".tr,
|
||||
// style: TextStyle(
|
||||
// color: stringToColor("#FFFFFF"), fontSize: 18.rpx),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Padding(
|
||||
// padding: EdgeInsetsDirectional.fromSTEB(
|
||||
// 0.rpx, 40.rpx, 20.rpx, 0.rpx),
|
||||
// // child: LineChartByRange(
|
||||
// // showLabel: showLabel,
|
||||
// // startTime: startTime,
|
||||
// // endTime: endTime,
|
||||
// // ),
|
||||
// child: BarChartWidget(
|
||||
// data: barDataList,
|
||||
// startTime: startTime,
|
||||
// endTime: endTime,
|
||||
// maxYValue: maxY, // 最大值可自定义
|
||||
// yStepCount: 3, // 分4段(0, 5, 10, 15, 20)
|
||||
// ),
|
||||
// ),
|
||||
// Padding(
|
||||
// padding:
|
||||
// EdgeInsetsDirectional.fromSTEB(0.rpx, 52.rpx, 0.rpx, 0.rpx),
|
||||
// child: Container(
|
||||
// child: Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
// children: [
|
||||
// Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.center, // 左对齐
|
||||
// children: [
|
||||
// Row(
|
||||
// children: [
|
||||
// // 小圆球
|
||||
// Container(
|
||||
// width: 14.rpx,
|
||||
// height: 14.rpx,
|
||||
// decoration: BoxDecoration(
|
||||
// color: (type[0]?['color'] == null ||
|
||||
// type[0]?['color'].isEmpty)
|
||||
// ? Colors.green
|
||||
// : stringToColor(
|
||||
// "${type[0]['color']}"), // 你想要的颜色
|
||||
// shape: BoxShape.circle,
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(width: 12.rpx), // 小圆球和文字间距
|
||||
// Text(
|
||||
// '${type[0]?['name']}',
|
||||
// style: TextStyle(
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize,
|
||||
// color: themeController.currentColor.sc3),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// SizedBox(height: 16.rpx), // 两行文字间距
|
||||
// Text(
|
||||
// '${(type[0]?['value'] == null || type[0]['value'].toString().isEmpty) ? '未知数据'.tr : '${type[0]?['value']}${(type[0]?['unit'] == null || type[0]['unit'].toString().isEmpty) ? '' : type[0]?['unit']}'}',
|
||||
// style: TextStyle(
|
||||
// fontSize: AppConstants().small_text_fontSize,
|
||||
// color: themeController.currentColor.sc4),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.center, // 左对齐
|
||||
// children: [
|
||||
// Row(
|
||||
// children: [
|
||||
// // 小圆球
|
||||
// Container(
|
||||
// width: 14.rpx,
|
||||
// height: 14.rpx,
|
||||
// decoration: BoxDecoration(
|
||||
// color: (type[1]?['color'] == null ||
|
||||
// type[1]?['color'].isEmpty)
|
||||
// ? Colors.red
|
||||
// : stringToColor(
|
||||
// "${type[1]['color']}"), // 你想要的颜色
|
||||
// shape: BoxShape.circle,
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(width: 12.rpx), // 小圆球和文字间距
|
||||
// Text(
|
||||
// '${type[1]?['name']}',
|
||||
// style: TextStyle(
|
||||
// fontSize:
|
||||
// AppConstants().normal_text_fontSize,
|
||||
// color: themeController.currentColor.sc3),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// SizedBox(height: 16.rpx), // 两行文字间距
|
||||
// Text(
|
||||
// '${(type[1]?['value'] == null || type[1]['value'].toString().isEmpty) ? '未知数据'.tr : '${type[1]?['value']}${(type[1]?['unit'] == null || type[1]['unit'].toString().isEmpty) ? '' : type[1]?['unit']}'}',
|
||||
// style: TextStyle(
|
||||
// fontSize: AppConstants().small_text_fontSize,
|
||||
// color: themeController.currentColor.sc4),
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// SizedBox(
|
||||
// height: 52.rpx,
|
||||
// ),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// } catch (e) {
|
||||
// es.EasyDartModule.logger.error("打鼾监测绘制异常${e}");
|
||||
// return Container();
|
||||
// }
|
||||
// }
|
||||
|
||||
// List<Map<String, dynamic>> convertToShowLabel(
|
||||
// List<Map<String, dynamic>> data) {
|
||||
// if (data.isEmpty) return [];
|
||||
|
||||
// data.sort((a, b) => a['st'].compareTo(b['st'])); // 确保时间有序
|
||||
|
||||
// List<Map<String, dynamic>> result = [];
|
||||
|
||||
// int startTime = data[0]['st'];
|
||||
// int endTime = data[0]['et'];
|
||||
// int currentValue = data[0]['value'];
|
||||
|
||||
// for (int i = 1; i < data.length; i++) {
|
||||
// final item = data[i];
|
||||
// final st = item['st'];
|
||||
// final value = item['value'];
|
||||
// final et = item['et'];
|
||||
|
||||
// if (value == currentValue) {
|
||||
// endTime = st;
|
||||
// } else {
|
||||
// result.add({
|
||||
// "startTime": startTime,
|
||||
// "endTime": endTime,
|
||||
// "times": currentValue,
|
||||
// });
|
||||
// startTime = st;
|
||||
// endTime = et;
|
||||
// currentValue = value;
|
||||
// }
|
||||
// }
|
||||
|
||||
// // 添加最后一段
|
||||
// result.add({
|
||||
// "startTime": startTime,
|
||||
// "endTime": endTime,
|
||||
// "times": currentValue,
|
||||
// });
|
||||
|
||||
// return result;
|
||||
// }
|
||||
// }
|
||||
|
||||
import 'package:EasyDartModule/EasyDartModule.dart' as es;
|
||||
import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -42,11 +42,15 @@ class _TrendDataTablePageState extends State<TrendDataTablePage> {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
widget.title,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 30.rpx,
|
||||
Expanded(
|
||||
child: Text(
|
||||
widget.title,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
fontSize: 30.rpx,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
ClickableContainer(
|
||||
|
||||
@@ -47,11 +47,15 @@ class IndicatorCompareCard extends StatelessWidget {
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
title.tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize,
|
||||
Expanded(
|
||||
child: Text(
|
||||
title.tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
if (tooltip != null)
|
||||
|
||||
@@ -181,7 +181,7 @@ class _VitalSignsWidgetState extends State<VitalSignsWidget> {
|
||||
'person_show': false,
|
||||
'itemName': 206,
|
||||
'retrun_fresh': true,
|
||||
'reportPadding':false,
|
||||
'reportPadding': false,
|
||||
});
|
||||
if (widget.onRefresh != null) {
|
||||
widget.onRefresh!();
|
||||
@@ -247,6 +247,8 @@ class _VitalSignsWidgetState extends State<VitalSignsWidget> {
|
||||
color: stringToColor("#929699"),
|
||||
fontSize: AppConstants().normal_text_fontSize,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -82,11 +82,15 @@ class _ZiZhuShenJingPercentWidgetState
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"自主神经平衡指数".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
Expanded(
|
||||
child: Text(
|
||||
"自主神经平衡指数".tr,
|
||||
style: TextStyle(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontSize: AppConstants().title_text_fontSize),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
@@ -95,7 +99,8 @@ class _ZiZhuShenJingPercentWidgetState
|
||||
14.rpx, 10.rpx, 14.rpx, 10.rpx), //
|
||||
borderRadius: 0.rpx, // 圆形点击区域
|
||||
onTap: () {
|
||||
if (AppConstants().ent_type == APPPackageType.MHT.code) {
|
||||
if (AppConstants().ent_type ==
|
||||
APPPackageType.MHT.code) {
|
||||
showTipDialog(
|
||||
context,
|
||||
Container(
|
||||
|
||||
@@ -1440,6 +1440,8 @@ class _NewSleepReportPageState extends State<NewSleepReportPage> {
|
||||
? themeController.currentColor.sc2
|
||||
: themeController.currentColor.sc3,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
SizedBox(height: 10.rpx),
|
||||
|
||||
Reference in New Issue
Block a user