This commit is contained in:
wyf
2025-06-17 19:12:30 +08:00
parent e34966aaba
commit f3f3e4f73f
117 changed files with 5479 additions and 6679 deletions

View File

@@ -57,13 +57,12 @@ class _TestWidgetState extends State<NullDataWidget> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'暂无数据'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
useGoogleFonts: false,
fontFamily: "PingFangSC",
letterSpacing: 0.0,
fontSize: 26.rpx,
color: themeController.currentColor.sc4,
),
style: TextStyle(
fontFamily: "PingFangSC",
letterSpacing: 0.0,
fontSize: 26.rpx,
color: themeController.currentColor.sc4,
),
),
),
),

View File

@@ -97,12 +97,12 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
},
child: Text(
'${targetDevice['person']?['name'] == null ? '未命名'.tr : targetDevice['person']['name']}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
),
),
ClickableContainer(
@@ -132,12 +132,12 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
children: [
Text(
'首页.报告详情'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(0, 6.rpx, 0, 0.rpx),
@@ -178,11 +178,11 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
alignment: Alignment.center,
child: Text(
'暂无数据'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 28.rpx,
color: themeController.currentColor.sc4,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 28.rpx,
color: themeController.currentColor.sc4,
),
),
);
}

View File

@@ -246,11 +246,13 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
'date': widget.data['time'] != null
? int.parse(widget.data['time'].toString())
: DateTime.now().millisecondsSinceEpoch,
"mac": widget.data['mac'] != null && widget.data['mac'].isNotEmpty? widget.data['mac']:'aaaaaaeeeeeq',
"mac": widget.data['mac'] != null && widget.data['mac'].isNotEmpty
? widget.data['mac']
: 'aaaaaaeeeeeq',
'type': 1,
'name': 'sleep', //'sleep', 'heartRate' 或 'breathe'
'itemName': widget.data['id'],
'person':widget.data['person'],
'person': widget.data['person'],
});
}
},
@@ -267,12 +269,12 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
children: [
Text(
'${widget.data['name']}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
@@ -287,7 +289,7 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
// children: [
// Text(
// '${widget.data['value']}',
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Inter',
// fontSize: 36.rpx,
// letterSpacing: 0.0,
@@ -374,12 +376,12 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
),
child: Text(
'${widget.data['level']}',
style: FlutterFlowTheme.of(context).titleSmall.override(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
fontSize: 15.rpx,
),
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
fontSize: 15.rpx,
),
),
),
),
@@ -388,12 +390,12 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
Text(
"正常值".tr +
'${(widget.data['range'] ?? '').toString().isEmpty ? '未知数据'.tr : widget.data['range']}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: AppConstants().small_text_fontSize,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants().small_text_fontSize,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),

View File

@@ -1,4 +1,3 @@
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
import 'package:ef/ef.dart';
import 'package:flutter/material.dart';
import 'package:flutterflow_ui/flutterflow_ui.dart';
@@ -84,24 +83,24 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 14.rpx),
child: Text(
'${week}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: AppConstants().title_text_fontSize,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants().title_text_fontSize,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 33.rpx),
child: Text(
'${day}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 20.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 20.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
),
),
Padding(
@@ -112,14 +111,14 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
children: [
Text(
(widget.score?.isEmpty ?? true) ? '--' : widget.score!,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
color: widget.textColor ??
themeController.currentColor.sc4,
fontWeight: FontWeight.bold, // 加粗
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
color: widget.textColor ??
themeController.currentColor.sc4,
fontWeight: FontWeight.bold, // 加粗
),
),
if ((widget.score?.trim().isNotEmpty ?? false))
Padding(
@@ -127,14 +126,12 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
EdgeInsetsDirectional.fromSTEB(0, 16.rpx, 0, 0.rpx),
child: Text(
''.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: AppConstants().small_text_fontSize,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants().small_text_fontSize,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
),
),
],
@@ -160,11 +157,11 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
EdgeInsetsDirectional.fromSTEB(16.rpx, 0, 16.rpx, 0),
iconPadding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
color: widget.textColor ?? themeController.currentColor.sc4,
textStyle: FlutterFlowTheme.of(context).titleSmall.override(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
),
textStyle: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
),
elevation: 0,
borderRadius: BorderRadius.circular(50.rpx),
),

View File

@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
import '../../controller/mh_controller/apply_repair_controller.dart';
class ImgPreviewDefaultWidget extends GetView {
ApplyRepairController applyRepairController;
@@ -13,7 +12,7 @@ class ImgPreviewDefaultWidget extends GetView {
Widget build(BuildContext context) {
return InkWell(
// onTap: applyRepairController.uploadImg,
onTap: ()async{},
onTap: () async {},
child: Container(
width: MediaQuery.sizeOf(context).width * 0.25,
height: MediaQuery.sizeOf(context).height * 0.15,
@@ -38,7 +37,7 @@ class ImgPreviewDefaultWidget extends GetView {
borderRadius: BorderRadius.circular(16),
),
child: Align(
alignment: AlignmentDirectional(0, 0),
alignment: AlignmentDirectional(0, 0),
child: Container(
width: 35,
height: 35,
@@ -60,12 +59,12 @@ class ImgPreviewDefaultWidget extends GetView {
padding: EdgeInsetsDirectional.fromSTEB(0, 8, 0, 13),
child: Text(
' ',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 11,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 11,
letterSpacing: 0,
),
),
),
),

View File

@@ -64,12 +64,12 @@ class ImgPreviewWidget extends GetView {
},
child: Text(
'删除',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
)),
)),