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

@@ -88,14 +88,12 @@ class _HomeDeviceTypeState extends State<HomeDeviceType> {
48.rpx, 24.rpx, 0, 0),
child: Text(
'选择类型',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
),
),
_buildControlCard(context),
@@ -150,7 +148,7 @@ Widget _buildDeviceItem(BuildContext context, Map<String, dynamic> dtype) {
child: Container(
height: 221.rpx,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).secondaryBackground,
// color: FlutterFlowTheme.of(context).secondaryBackground,
borderRadius: BorderRadius.circular(6),
),
constraints: BoxConstraints(minHeight: 221.rpx),
@@ -178,11 +176,11 @@ Widget _buildDeviceItem(BuildContext context, Map<String, dynamic> dtype) {
padding: EdgeInsets.fromLTRB(0, 59.rpx, 0, 0),
child: Text(
dtype["name"],
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
fontWeight: FontWeight.bold,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
fontWeight: FontWeight.bold,
),
),
),
SizedBox(height: 35.rpx),

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:vbvs_app/common/util/FitTool.dart';
@@ -130,7 +129,6 @@ class LanguagePage extends GetView<MHLanguageController> {
borderRadius: BorderRadius.circular(4),
),
),
unselectedWidgetColor: FlutterFlowTheme.of(context).alternate,
),
child: Obx(() {
return Checkbox(
@@ -149,10 +147,10 @@ class LanguagePage extends GetView<MHLanguageController> {
shape: CircleBorder(),
side: BorderSide(
width: 2,
color: FlutterFlowTheme.of(context).alternate,
// color: FlutterFlowTheme.of(context).alternate,
),
activeColor: Color(0XFF6BFDAC),
checkColor: FlutterFlowTheme.of(context).info,
// checkColor: FlutterFlowTheme.of(context).info,
);
})),
],

View File

@@ -54,12 +54,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
child: Text(
// '实时监测结果通知'.tr,
"${messageInfo['data']['title']}",
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,
),
),
),
),
@@ -144,12 +144,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
child: Center(
child: Text(
getMessageStatus(messageInfo['status']),
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: Colors.white,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: Colors.white,
),
),
),
),
@@ -170,12 +170,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
overflow: TextOverflow.ellipsis,
maxLines: 1,
label.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
),
),
);
@@ -192,12 +192,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
overflow: TextOverflow.ellipsis,
maxLines: 1,
"${value}",
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,
),
),
),
);

View File

@@ -67,14 +67,12 @@ class ShareUserWidget extends GetView {
alignment: const AlignmentDirectional(-1, 0),
child: Text(
'${info['userName']}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
),
),
),
),
@@ -87,14 +85,12 @@ class ShareUserWidget extends GetView {
: info['opType'] == 2
? '仅允许对方查看该设备'
: '',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFFC8CBD2),
fontSize: 20.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFFC8CBD2),
fontSize: 20.rpx,
letterSpacing: 0.0,
),
),
),
),
@@ -109,7 +105,7 @@ class ShareUserWidget extends GetView {
// maxWidth: 130,
// ),
// decoration: BoxDecoration(
// color: FlutterFlowTheme.of(context).secondaryBackground,
//
// ),
// child: Row(
// mainAxisSize: MainAxisSize.max,
@@ -119,7 +115,7 @@ class ShareUserWidget extends GetView {
// alignment: const AlignmentDirectional(0, 0),
// child: Text(
// ' ',
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Readex Pro',
// color: const Color(0xFF333333),
// fontSize: 13,

View File

@@ -93,14 +93,12 @@ class AddressListPage extends GetView<AddressListController> {
31, 27, 0, 26),
child: Text(
'我的地址',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: AppFontsize.title_size,
letterSpacing: 0,
fontWeight: FontWeight.w600,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize.title_size,
letterSpacing: 0,
fontWeight: FontWeight.w600,
),
),
),
),
@@ -186,14 +184,12 @@ class AddressListPage extends GetView<AddressListController> {
SizedBox(width: 10), // 加号和文字间距
Text(
'添加新地址',
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize: AppFontsize.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize: AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
],
),

View File

@@ -108,15 +108,13 @@ class AddressModuleWidget extends GetView {
element != null &&
element.isNotEmpty)
.join(' '),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -133,15 +131,13 @@ class AddressModuleWidget extends GetView {
? '无详细地址'
: addressListController.model
.addressList[index]['detail'],
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -151,15 +147,13 @@ class AddressModuleWidget extends GetView {
child: Text(
'${addressListController.model.addressList[index]['name']} ' +
'${addressListController.model.addressList[index]['phone']} ',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -208,12 +202,11 @@ class AddressModuleWidget extends GetView {
},
side: BorderSide(
width: 1.5,
color: FlutterFlowTheme.of(context)
.secondaryText,
color: Colors.white,
),
activeColor: const Color(0xFFd3b684),
checkColor:
FlutterFlowTheme.of(context).info,
// checkColor:
// FlutterFlowTheme.of(context).info,
);
}),
),
@@ -238,14 +231,12 @@ class AddressModuleWidget extends GetView {
alignment: AlignmentDirectional(1, 0),
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,
),
),
),
),

View File

@@ -60,7 +60,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
/// 居中标题
Text(
'报修成功标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -131,9 +131,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'报修成功'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -230,9 +228,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
),
Text(
'查看报修历史'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: Color(0xFF011D33),
fontFamily: 'Inter',
fontSize: AppConstants()
@@ -276,9 +272,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
children: [
Text(
'绑定成功.返回'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style:TextStyle(
color: Color(0xFF011D33),
fontFamily: 'Inter',
fontSize: AppConstants()
@@ -327,7 +321,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
children: [
Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFC2CED7),
fontSize: 30.rpx,

View File

@@ -149,19 +149,15 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
0, -1),
child: Text(
'选择需要报修的设备',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
letterSpacing: 0,
fontSize:
AppFontsize
.title_size,
color: Colors
.white // 加粗文字
),
style: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing: 0,
fontSize: AppFontsize
.title_size,
color: Colors
.white // 加粗文字
),
),
),
),
@@ -203,7 +199,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
-1, 0),
child: Text(
'已绑设备',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: 26
@@ -271,18 +267,21 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
300,
height:
56,
searchHintTextStyle: FlutterFlowTheme.of(context).labelMedium.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
searchTextStyle: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
textStyle: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
searchHintTextStyle:
TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
searchTextStyle:
TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
textStyle:
TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
hintText:
'请选择绑定设备',
searchHintText:
@@ -290,7 +289,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
icon:
Icon(
Icons.keyboard_arrow_down_rounded,
color: FlutterFlowTheme.of(context).secondaryText,
color: Colors.white,
size: 24,
),
// fillColor:
@@ -298,7 +297,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
elevation:
2,
borderColor:
FlutterFlowTheme.of(context).alternate,
Colors.white,
borderWidth:
0,
borderRadius:
@@ -355,7 +354,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
-1, 0),
child: Text(
'设备系列',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: 26
@@ -409,18 +408,20 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -476,15 +477,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
18),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
);
})),
),
@@ -525,7 +524,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
-1, 0),
child: Text(
'产品型号',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: 26
@@ -579,18 +578,20 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -646,15 +647,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
18),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
);
})),
),
@@ -695,7 +694,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
-1, 0),
child: Text(
'序列号',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: 26
@@ -749,18 +748,20 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -816,15 +817,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
18),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
);
})),
),
@@ -987,20 +986,17 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
0, 0),
child: Text(
'上传设备故障照片',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF9EA4B7),
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: const Color(
0xFF9EA4B7),
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
),
),
@@ -1027,9 +1023,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
minHeight: 250,
),
decoration: BoxDecoration(
color: FlutterFlowTheme.of(
context)
.secondaryBackground,
color: Colors.white,
),
child: Column(
mainAxisSize:
@@ -1053,9 +1047,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
height: 21,
decoration:
BoxDecoration(
color: FlutterFlowTheme
.of(context)
.secondaryBackground,
color: Colors.white,
),
child: Container(
width: MediaQuery
@@ -1066,9 +1058,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
height: 21,
decoration:
BoxDecoration(
color: FlutterFlowTheme.of(
context)
.secondaryBackground,
color: Colors.white,
),
child: Row(
mainAxisSize:
@@ -1085,45 +1075,42 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
.issue_img!
.length
.toString(),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
Text(
'/',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
Text(
'3',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
],
),
@@ -1153,18 +1140,14 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
),
decoration:
BoxDecoration(
color: FlutterFlowTheme
.of(context)
.secondaryBackground,
color: Colors.white,
),
child: Container(
width: 100,
height: 100,
decoration:
BoxDecoration(
color: FlutterFlowTheme.of(
context)
.secondaryBackground,
color: Colors.white,
),
child: Obx(() => ListView(
shrinkWrap: true,
@@ -1225,18 +1208,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
.fromSTEB(0, 15, 0, 16),
child: Text(
'请描述一下您的问题',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
fontWeight:
FontWeight.w600,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
fontWeight: FontWeight.w600,
),
),
),
),
@@ -1274,10 +1252,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
decoration: InputDecoration(
hintText: '问题描述100个字以内',
labelStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
@@ -1285,10 +1260,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
letterSpacing: 0,
color: Color(
0XFF929699)),
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
@@ -1355,16 +1327,12 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
maxLines: 4,
maxLength:
100, // ✅ 限制最多输入 100 字符
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -1399,10 +1367,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
0, 48.rpx, 0, 48.rpx),
child: Text(
'联系方式',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
@@ -1467,7 +1432,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
children: [
Text(
'联系人',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: 26
@@ -1524,19 +1489,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
10,
14),
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -1591,10 +1550,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
.circular(8),
),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -1643,7 +1599,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
children: [
Text(
'手机号码',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: 26
@@ -1697,19 +1653,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
10,
14),
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -1764,10 +1714,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
.circular(8),
),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -1875,14 +1822,12 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
),
child: Text(
"提交申请",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
),
),
)),

View File

@@ -41,7 +41,7 @@ class BookDateWidget extends GetView<BookInfoController> {
Flexible(
child: Text(
"${bookInfoController.model.datetimes![index]?['dayName']}",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
color: controller.model.datetimes_index == index
@@ -53,7 +53,7 @@ class BookDateWidget extends GetView<BookInfoController> {
Flexible(
child: Text(
"${bookInfoController.model.datetimes![index]?['day']}",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
color: controller.model.datetimes_index == index

View File

@@ -113,25 +113,21 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'${data["name"]}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
lineHeight: 1,
color: Colors.white),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
height: 1,
color: Colors.white),
),
Text(
'地址:${data["addressDetail"]}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1,
color: Color(0xFF929699)),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
height: 1,
color: Color(0xFF929699)),
),
].divide(SizedBox(
height: 18.rpx,
@@ -145,13 +141,11 @@ class BookInfoPage extends GetView<BookInfoController> {
alignment: Alignment.centerLeft,
child: Text(
'体验日期',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white),
),
),
// Align(
@@ -184,15 +178,13 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'体验时段',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
// 设置加粗
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
// 设置加粗
),
),
Flexible(child: Obx(() {
return InkWell(
@@ -234,31 +226,25 @@ class BookInfoPage extends GetView<BookInfoController> {
null
? "${controller.model.time_period?[controller.model.select_time_index!]?["timeStr"]}"
: '请选择时间',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: (controller
.model
.select_time_index ==
null)
? stringToColor(
'#D0D0D0')
: Colors
.white),
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: (controller
.model
.select_time_index ==
null)
? stringToColor(
'#D0D0D0')
: Colors.white),
),
),
Icon(
Icons
.keyboard_arrow_down_sharp,
color: FlutterFlowTheme.of(
context)
.secondaryText,
color: Colors.white,
size: 16,
),
],
@@ -285,15 +271,13 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'体验人员',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
// 设置加粗
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
// 设置加粗
),
),
Flexible(
child: Align(
@@ -328,29 +312,19 @@ class BookInfoPage extends GetView<BookInfoController> {
false,
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '输入姓名',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Color(
0xFF929699)),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Color(0xFF929699)),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -399,16 +373,11 @@ class BookInfoPage extends GetView<BookInfoController> {
EdgeInsets.symmetric(
vertical: 0),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color:
Colors.white),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color: Colors.white),
textAlign: TextAlign.end,
),
),
@@ -436,15 +405,13 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'手机号',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
// 设置加粗
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
// 设置加粗
),
),
Flexible(
child: Align(
@@ -480,29 +447,19 @@ class BookInfoPage extends GetView<BookInfoController> {
keyboardType:
TextInputType.phone,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '输入手机号',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Color(
0xFF929699)),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Color(0xFF929699)),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -551,16 +508,11 @@ class BookInfoPage extends GetView<BookInfoController> {
EdgeInsets.symmetric(
vertical: 0),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color:
Colors.white),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color: Colors.white),
textAlign: TextAlign.end,
),
),
@@ -700,13 +652,12 @@ class BookInfoPage extends GetView<BookInfoController> {
),
child: Text(
"提交预约",
style:
FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
),
),
)),

View File

@@ -102,15 +102,13 @@ class BookSuccessPage extends GetView {
alignment: const AlignmentDirectional(0, 0),
child: Text(
'预约成功!',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
color: Colors.white,
letterSpacing: 0,
fontWeight: FontWeight.w600,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
color: Colors.white,
letterSpacing: 0,
fontWeight: FontWeight.w600,
),
),
),
].divide(SizedBox(height: 30.rpx)),

View File

@@ -58,12 +58,12 @@ void showBindDoubleDialog(
EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
child: Text(
'蓝牙绑定.双人版绑定标题'.tr,
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,
),
),
),
),
@@ -250,14 +250,12 @@ Future<void> showHaveBindDialog(BuildContext context) async {
children: [
Text(
'知道了'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(
width: 17.rpx,
@@ -305,7 +303,7 @@ void showLoadingDialog(BuildContext context, {String? title}) {
// 0.rpx, 93.rpx, 0.rpx, 0.rpx),
// child: Text(
// '蓝牙绑定.无法绑定'.tr,
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Inter',
// fontSize: 30.rpx,
// letterSpacing: 0.0,
@@ -388,12 +386,12 @@ Widget _buildCheckboxRow(
children: [
TextSpan(
text: mainText,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: AppConstants().normal_text_fontSize,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: AppConstants().normal_text_fontSize,
color: themeController.currentColor.sc3,
),
),
if (isBindable)
TextSpan(
@@ -459,12 +457,12 @@ Widget _buildActionButton(
children: [
Text(
text,
style: FlutterFlowTheme.of(context).bodyMedium.override(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -539,13 +537,13 @@ void showConfirmDialog(
33.rpx, 60.rpx, 33.rpx, 33.rpx),
child: Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"),
fontWeight: FontWeight.w600,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"),
fontWeight: FontWeight.w600,
),
),
),
),
@@ -583,15 +581,13 @@ void showConfirmDialog(
children: [
Text(
"".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -621,15 +617,13 @@ void showConfirmDialog(
children: [
Text(
"".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -719,12 +713,12 @@ void showSingleConfirmDialog(
33.rpx, 60.rpx, 33.rpx, 33.rpx),
child: Text(
title,
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,
),
),
),
),
@@ -763,15 +757,12 @@ void showSingleConfirmDialog(
children: [
Text(
confirmText,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -854,12 +845,12 @@ void showWifiDialog(
EdgeInsetsDirectional.fromSTEB(0.rpx, 20.rpx, 0, 0),
child: Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"),
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"),
),
),
),
),
@@ -899,15 +890,12 @@ void showWifiDialog(
children: [
Text(
"连接".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: Colors.white,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: Colors.white,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -989,14 +977,12 @@ Future<void> showTipDialog(
children: [
Text(
'知道了'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: stringToColor("#333333"),
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: stringToColor("#333333"),
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -1078,14 +1064,12 @@ Future<void> showUnBindTipDialog(
children: [
Text(
'继续'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -1124,14 +1108,12 @@ Future<void> showUnBindTipDialog(
children: [
Text(
'下次再说'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),

View File

@@ -295,14 +295,12 @@ class DeletedAccountPage extends GetView {
iconPadding: const EdgeInsetsDirectional.fromSTEB(
0, 0, 0, 0),
color: const Color(0xFFFF7159),
textStyle: FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.normal_text_size,
letterSpacing: 0,
),
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.normal_text_size,
letterSpacing: 0,
),
elevation: 0,
borderSide: const BorderSide(
color: Colors.transparent,

View File

@@ -226,7 +226,8 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
text: response.msg!);
if (response.code == HttpStatusCodes.ok) {
//更新设备绑定流程
Get.toNamed("/mHTwifiPage",arguments: widget.bleDevice);
Get.toNamed("/mHTwifiPage",
arguments: widget.bleDevice);
THapp bledevice = THapp(
device: widget.bleDevice.scanResult.device);
blueteethBindController.currentDevice = bledevice;
@@ -322,12 +323,12 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
children: [
Text(
device.name ?? '蓝牙绑定.默认设备名称'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 30.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 30.rpx,
letterSpacing: 0.0,
),
),
Obx(() {
if (blueteethBindController.currentDeviceMac.value ==
@@ -350,77 +351,77 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
children: [
Text(
"蓝牙绑定.信号强度".tr + '${device.rssi ?? '-'}dBm',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
SizedBox(width: 40.rpx),
Text(
"蓝牙绑定.SN".tr + '${device.sn ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFF5F9FD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF5F9FD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
],
),
Text(
"蓝牙绑定.蓝牙地址".tr + '${device.deviceId ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
Text(
"蓝牙绑定.mac".tr + '${device.mac ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
Row(
children: [
Text(
"蓝牙绑定.网络".tr +
'${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
SizedBox(width: 145.rpx),
Row(
children: [
Text(
"蓝牙绑定.传感器".tr + "",
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
Text(
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: device.bind == false
? const Color(0xFF1AD2B5)
: themeController.currentColor.sc9,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: device.bind == false
? const Color(0xFF1AD2B5)
: themeController.currentColor.sc9,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
],
),
@@ -428,12 +429,12 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
),
Text(
"版本".tr + '${device.version ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
].divide(SizedBox(
height: 37.rpx,

View File

@@ -55,12 +55,12 @@ class DeviceInfoWidget extends GetView {
Text(
deviceListController.model.deviceList[index]['name'] ??
'SWES系列 01号智能一键入眠床',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
maxLines: 1, // 限制显示一行
overflow: TextOverflow.ellipsis, // 超出部分显示省略号
),
@@ -108,40 +108,31 @@ class DeviceInfoWidget extends GetView {
.deviceList[
index]['_id'] ??
''),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
height: 1),
),
TextSpan(
text:
' (${deviceListController.model.deviceList[index]['status'] ?? ''})',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: deviceListController
.model
.deviceList[index]
[
'status'] ==
'在线'
? Color(
0xFF07C160) // 在线的颜色
: Color(
0xFFEA7CA7), // 离线的颜色
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: deviceListController
.model
.deviceList[
index]
['status'] ==
'在线'
? Color(
0xFF07C160) // 在线的颜色
: Color(
0xFFEA7CA7), // 离线的颜色
fontSize: 26.rpx,
letterSpacing: 0,
),
),
],
),
@@ -160,14 +151,12 @@ class DeviceInfoWidget extends GetView {
.model.deviceList[index]
['roomName'] ??
''),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
height: 1),
),
),
Align(
@@ -180,14 +169,12 @@ class DeviceInfoWidget extends GetView {
?["status"]
?.toString() ??
''),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
height: 1),
),
)
].divide(SizedBox(height: 36.rpx)),
@@ -207,14 +194,12 @@ class DeviceInfoWidget extends GetView {
text: '控制',
options: FFButtonOptions(
color: Color(0XFF85F5FF),
textStyle: FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 28.rpx,
letterSpacing: 0,
),
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 28.rpx,
letterSpacing: 0,
),
elevation: 0,
borderSide: BorderSide(
color: Colors.transparent,
@@ -282,15 +267,13 @@ class DeviceInfoWidget extends GetView {
if (device['bind_type'] == 1)
Text(
'已分享:',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
),
if (device['bind_type'] == 1)
Padding(
@@ -303,42 +286,36 @@ class DeviceInfoWidget extends GetView {
['shareNum'] ??
0)
.toString(),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
),
if (device['bind_type'] == 1)
Text(
'',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
),
if (device['bind_type'] == 2)
Text(
'来自',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
),
if (device['bind_type'] == 2)
Padding(
@@ -347,28 +324,24 @@ class DeviceInfoWidget extends GetView {
5, 0, 5, 0),
child: Text(
'${device['suname']?.length > 5 ? device['suname'].substring(0, 5) + '...' : device['suname']}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
),
if (device['bind_type'] == 2)
Text(
'的分享',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 21.rpx,
letterSpacing: 0,
color: Colors.white,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 21.rpx,
letterSpacing: 0,
color: Colors.white,
),
),
],
),
@@ -407,14 +380,12 @@ class DeviceInfoWidget extends GetView {
SizedBox(width: 5),
Text(
'睡眠报告',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 21.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 21.rpx,
letterSpacing: 0,
),
),
],
),

View File

@@ -67,12 +67,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
/// 居中标题
Text(
'绑定成功.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
),
/// 左边返回按钮
@@ -185,14 +185,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'绑定成功.绑定成功'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
),
),
),
@@ -206,14 +204,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'绑定成功.分享标题'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
),
),
),
@@ -227,14 +223,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
alignment: AlignmentDirectional(-1, 0),
child: Text(
'绑定成功.分享内容'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController.currentColor.sc4,
),
),
),
),
@@ -299,15 +293,13 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
),
Text(
'绑定成功.立即分享'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize, // 自定义字体大小
letterSpacing: 0.0,
),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize, // 自定义字体大小
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),
@@ -384,15 +376,13 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
children: [
Text(
'绑定成功.返回'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize, // 自定义字体大小
letterSpacing: 0.0,
),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize, // 自定义字体大小
letterSpacing: 0.0,
),
),
].divide(SizedBox(width: 17.rpx)),
),

View File

@@ -76,12 +76,12 @@ class _MHTBindDeviceTypePageState extends State<MHTBindDeviceTypePage> {
/// 居中标题
Text(
'添加设备'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
),
/// 左边返回按钮

View File

@@ -111,13 +111,14 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
}
void _startScanning() async {
if (!mounted || isScanning || !mhtBlueToothController.shouldScan.value) return;
if (!mounted || isScanning || !mhtBlueToothController.shouldScan.value)
return;
_scanSubscription?.cancel();
var bluetoothState = await FlutterBluePlus.isOn;
mhtBlueToothController.model.bluetooth = bluetoothState;
mhtBlueToothController.updateAll();
if (!bluetoothState && !_isDialogShowing) {
_isDialogShowing = true;
mhtBlueToothController.model.blueRawData = [];
@@ -139,7 +140,8 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
if (!mounted) return;
final signalThreshold = mhtBlueToothController.model.singal!;
final searchKey = mhtBlueToothController.search.value.trim().toLowerCase();
final searchKey =
mhtBlueToothController.search.value.trim().toLowerCase();
final filteredResults = results.where((r) {
final localName = r.advertisementData.localName;
@@ -280,12 +282,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
children: [
Text(
'添加设备'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
),
Positioned(
left: 0,
@@ -337,14 +339,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
false)
? "等待扫描".tr
: '扫描中'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
);
}),
),
@@ -372,22 +372,18 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
children: [
Text(
'最小信号强度'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
Expanded(
child: Obx(() {
return Slider(
activeColor: Color(0xFF1FCC9B),
inactiveColor:
FlutterFlowTheme.of(context)
.alternate,
inactiveColor: Colors.white,
min: -100,
max: 50,
value:
@@ -406,14 +402,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
Obx(() {
return Text(
'${mhtBlueToothController.model.singal!.toInt()}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
);
}),
].divide(SizedBox(width: 30.rpx)),
@@ -456,8 +450,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
width: 100.rpx,
height: 90.rpx,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
color: Colors.white,
),
child: Align(
alignment:
@@ -474,23 +467,17 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '检索设备'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
enabledBorder:
OutlineInputBorder(
borderSide: BorderSide(
@@ -513,9 +500,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(
context)
.error,
color: Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -525,9 +510,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(
context)
.error,
color: Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -538,14 +521,11 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
fillColor: themeController
.currentColor.sc22,
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
cursorColor:
stringToColor("#003058"),
),
@@ -579,14 +559,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
},
child: Text(
'搜索'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"),
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"),
),
),
),
].divide(SizedBox(width: 26.rpx)),
@@ -609,14 +587,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
return Text(
'匹配出的外围设备'.tr +
"${mhtBlueToothController.model.deviceDataStatus!.length}",
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,
),
);
}),
),
@@ -690,14 +666,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
Expanded(
child: Text(
'蓝牙绑定提示'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
),
].divide(SizedBox(width: 23.rpx)),
@@ -714,4 +688,4 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
),
);
}
}
}

View File

@@ -593,8 +593,8 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
padding: EdgeInsetsDirectional.fromSTEB(
100.rpx, 0.rpx, 100.rpx, 60.rpx),
child: CustomCard(
borderRadius: AppConstants()
.normal_container_radius,
borderRadius:
AppConstants().normal_container_radius,
onTap: () async {
if (deviceCalibrationController.flag.value ==
2) {
@@ -763,16 +763,13 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
0) {
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color:
stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
);
}
if (deviceCalibrationController
@@ -782,16 +779,14 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
.statusContext.value = "";
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
);
}
if (deviceCalibrationController
@@ -799,16 +794,14 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
2) {
return Text(
'重新校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
);
}
return Container();

View File

@@ -645,29 +645,24 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
currentCalibrationStep.value == 2) {
return Text(
'开始另外一侧校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color:
stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
);
}
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
);
}
if (deviceCalibrationController
@@ -677,16 +672,14 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
.statusContext.value = "";
return Text(
'校准中...'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
);
}
if (deviceCalibrationController
@@ -694,15 +687,13 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
2) {
return Text(
'重新校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
);
}
return Container();

View File

@@ -144,13 +144,12 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
children: [
Text(
'wifi配置'.tr,
style:
FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
),
SizedBox(
width: 14.rpx,
@@ -217,13 +216,11 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'下一步'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Inter Tight',
color: stringToColor("#003058"),
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter Tight',
color: stringToColor("#003058"),
letterSpacing: 0.0,
),
),
),
),
@@ -355,15 +352,13 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
children: [
Text(
'可用WLAN'.tr,
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,
),
),
],
),
@@ -429,21 +424,19 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
InputDecoration(
isDense:
true,
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Inter',
fontSize:
26.rpx,
letterSpacing:
0.0,
),
labelStyle:
TextStyle(
fontFamily:
'Inter',
fontSize:
26.rpx,
letterSpacing:
0.0,
),
hintText:
'输入wifi密码'
.tr,
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
hintStyle: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -483,8 +476,6 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -496,8 +487,6 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -533,7 +522,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
),
),
),
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -630,18 +619,13 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
children: [
Text(
wifiItem['ssid'] ?? '',
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,
),
),
if (blueteethBindController
.selectWifi.value ==
@@ -767,15 +751,13 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
),
Text(
'刷新'.tr,
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,
),
),
].divide(SizedBox(width: 26.rpx)),
),

View File

@@ -23,12 +23,12 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
alignment: Alignment.centerLeft,
child: Text(
'$str',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
);
}
@@ -125,13 +125,11 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
alignment: Alignment.centerLeft,
child: Text(
'设备信息',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
),
),
getInfoRow(
@@ -173,14 +171,12 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
alignment: Alignment.centerLeft,
child: Text(
'人员资料${index == 0 ? "A" : "B"}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 32.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 32.rpx,
letterSpacing: 0,
),
),
),
if (location_.isNotEmpty)

View File

@@ -113,26 +113,22 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
children: [
Text(
'将以下设备分享给您的家人或朋友 ',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
lineHeight: 1,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
height: 1,
),
),
Text(
'设备ID${deviceController.model.deviceMain['mac']}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFF6BFDAC),
fontSize: 26.rpx,
letterSpacing: 0.0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF6BFDAC),
fontSize: 26.rpx,
letterSpacing: 0.0,
height: 1),
),
].divide(SizedBox(height: 65.rpx)),
),
@@ -157,16 +153,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
controller: _phoneController,
decoration: InputDecoration(
hintText: '请输入对方手机号',
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 36.rpx,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color:
const Color(0xFF929699),
fontSize: 36.rpx,
),
enabledBorder:
const UnderlineInputBorder(
borderSide: BorderSide(
@@ -195,15 +187,11 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
const EdgeInsets.only(
left: 10, bottom: 5),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 36.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 36.rpx,
),
validator: (value) {
if (value == null ||
value.isEmpty) {
@@ -439,16 +427,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
children: [
Text(
'允许对方控制该设备',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
Radio<int>(
value: 1,
@@ -494,16 +478,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
children: [
Text(
'仅允许对方查看该设备',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
),
Radio<int>(
value: 2,
@@ -556,15 +536,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
EdgeInsetsDirectional.fromSTEB(
30.rpx, 0, 30.rpx, 0),
color: const Color(0xFF84F5FF),
textStyle:
FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF011D33),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF011D33),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
elevation: 0,
borderRadius:
BorderRadius.circular(50),
@@ -596,14 +573,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
.fromSTEB(14, 0, 0, 16),
child: Text(
'已分享用户',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
height: 1),
),
),
),

View File

@@ -181,10 +181,7 @@ class EditAddressPage extends GetView<AddressController>
-1, 0),
child: Text(
'地址信息',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors
@@ -273,7 +270,7 @@ class EditAddressPage extends GetView<AddressController>
},
side: BorderSide(
width: 1.5,
color: FlutterFlowTheme.of(context).secondaryText,
color:Colors.white,
),
activeColor: const Color(0xFF84F5FF),
checkColor: Color(0xFF011D33),
@@ -285,10 +282,7 @@ class EditAddressPage extends GetView<AddressController>
),
Text(
'默认',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
@@ -349,10 +343,7 @@ class EditAddressPage extends GetView<AddressController>
children: [
Text(
'收件人',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
@@ -400,19 +391,13 @@ class EditAddressPage extends GetView<AddressController>
0,
10,
18),
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -471,10 +456,7 @@ class EditAddressPage extends GetView<AddressController>
8),
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style:TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -529,10 +511,7 @@ class EditAddressPage extends GetView<AddressController>
children: [
Text(
'手机号',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
@@ -582,19 +561,13 @@ class EditAddressPage extends GetView<AddressController>
0,
10,
18),
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -653,10 +626,7 @@ class EditAddressPage extends GetView<AddressController>
8),
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -719,10 +689,7 @@ class EditAddressPage extends GetView<AddressController>
// },
child: Text(
'所在地区',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
@@ -777,11 +744,11 @@ class EditAddressPage extends GetView<AddressController>
false,
decoration: InputDecoration(
contentPadding: const EdgeInsetsDirectional.fromSTEB(10, 0, 10, 18),
labelStyle: FlutterFlowTheme.of(context).labelMedium.override(
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
@@ -847,15 +814,12 @@ class EditAddressPage extends GetView<AddressController>
Icon(
Icons.arrow_forward_ios,
color:
FlutterFlowTheme.of(context).secondaryText,
Colors.white,
size:
12,
),
)),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -918,7 +882,7 @@ class EditAddressPage extends GetView<AddressController>
children: [
Text(
'详细地址',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style:TextStyle(
fontFamily:
'Readex Pro',
fontSize:
@@ -988,19 +952,13 @@ class EditAddressPage extends GetView<AddressController>
10,
10,
10),
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -1055,10 +1013,7 @@ class EditAddressPage extends GetView<AddressController>
.circular(8),
),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -1147,9 +1102,7 @@ class EditAddressPage extends GetView<AddressController>
),
child: Text(
"保存",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,

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:vbvs_app/common/color/ServiceConstant.dart';
@@ -123,22 +122,18 @@ class _EditBedPageState extends State<EditBedPage> {
contentPadding:
const EdgeInsetsDirectional
.fromSTEB(10, 0, 10, 0),
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
fontSize: 36.rpx, // 设置输入文字大小
color: Colors.white, // 设置输入文字颜色
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
color: Color(0xFF929699),
fontSize: 36.rpx,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
fontSize: 36.rpx, // 设置输入文字大小
color: Colors.white, // 设置输入文字颜色
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
color: Color(0xFF929699),
fontSize: 36.rpx,
),
enabledBorder: UnderlineInputBorder(
borderSide: const BorderSide(
color: Color(0x00000000),
@@ -173,12 +168,10 @@ class _EditBedPageState extends State<EditBedPage> {
BorderRadius.circular(8),
),
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
),
))
],

View File

@@ -55,12 +55,12 @@ class ExperienceStoreWidget extends GetView {
child: Text(
// experienceStoreModel.name ?? '未命名',
data["name"] ?? '',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
),
),
),
@@ -97,14 +97,12 @@ class ExperienceStoreWidget extends GetView {
alignment: const AlignmentDirectional(-1, 0),
child: Text(
'地址:${data["addressDetail"]}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFF929699),
fontSize: 20.rpx,
letterSpacing: 0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF929699),
fontSize: 20.rpx,
letterSpacing: 0,
height: 1),
),
),
),
@@ -113,14 +111,12 @@ class ExperienceStoreWidget extends GetView {
alignment: const AlignmentDirectional(-1, 0),
child: Text(
'电话:${data["hotline"]}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFF929699),
fontSize: 20.rpx,
letterSpacing: 0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF929699),
fontSize: 20.rpx,
letterSpacing: 0,
height: 1),
),
),
),
@@ -171,14 +167,12 @@ class ExperienceStoreWidget extends GetView {
),
Text(
'咨询',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
].divide(const SizedBox(width: 13)),
),
@@ -230,14 +224,12 @@ class ExperienceStoreWidget extends GetView {
),
Text(
'导航',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
].divide(const SizedBox(width: 13)),
),
@@ -268,14 +260,12 @@ class ExperienceStoreWidget extends GetView {
padding: const EdgeInsetsDirectional.fromSTEB(
0, 0, 0, 0),
color: Color(0xFF84F5FF),
textStyle: FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF011D33),
fontSize: 26.rpx,
letterSpacing: 0,
),
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF011D33),
fontSize: 26.rpx,
letterSpacing: 0,
),
elevation: 0,
borderSide: const BorderSide(
color: Colors.transparent,

View File

@@ -4,6 +4,7 @@ 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/component/tool/CustomCard.dart';
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
class HomeDeviceStausWidget extends StatefulWidget {
final deviceStatus;
@@ -73,6 +74,7 @@ class _HomeDeviceStausWidgetState extends State<HomeDeviceStausWidget> {
borderRadius: 10.rpx,
onTap: () {
// 点击回调逻辑放这里
TopSlideNotification.show(context,text: "功能开发中...".tr);
},
colors:
AppConstants().mhtButtongradientColors, // 你原本没有渐变,单色即可

View File

@@ -16,6 +16,7 @@ import 'package:vbvs_app/pages/mh_page/FloatingSvgIcon.dart';
import 'package:vbvs_app/pages/mh_page/homepage/component/HomeDeviceWidget.dart';
import 'package:vbvs_app/pages/mh_page/homepage/controller/mht_home_controller.dart';
import 'package:vbvs_app/pages/sleep_report/mht_new_sleep_report_page.dart';
import 'package:vbvs_app/pages/sleep_report/new_sleep_report_page.dart';
class MhtSleepReportPage extends StatefulWidget {
const MhtSleepReportPage({super.key});
@@ -32,74 +33,13 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
var formFieldController = FormFieldController<String>(null);
var personInfo = {}.obs;
GlobalController gloablController = Get.find();
WeatherModelController weatherModelController = Get.find();
// var selectedDayIndex = (6).obs;
@override
void initState() {
super.initState();
if (userInfoController.model.login == 1) {
//查询人员信息列表
deviceController.getPersonList();
//请求绑定设备列表
// homeController.getSleepReport();
deviceController.getDeviceNum().then((apiResponse) {
if (apiResponse.code != HttpStatusCodes.ok) {
TopSlideNotification.show(
Get.context!,
text: apiResponse.msg!,
textColor: themeController.currentColor.sc9,
);
}
});
deviceController.getDeviceList(group: 'room').then((apiResponse) {
if (apiResponse.code != HttpStatusCodes.ok) {
TopSlideNotification.show(
Get.context!,
text: apiResponse.msg!,
textColor: themeController.currentColor.sc9,
);
} else {
//请求睡眠报告
// deviceController.getSleepReport();
}
});
}
WidgetsBinding.instance.addPostFrameCallback((_) {
if (homeController.sleepDays.value.isNotEmpty) {
homeController.selectedDayIndex.value =
homeController.sleepDays.value.length - 1;
}
});
}
getWeekName(int i) {
String v = "";
switch (i) {
case 1:
v = "周一";
break;
case 2:
v = "周二";
break;
case 3:
v = "周三";
break;
case 4:
v = "周四";
break;
case 5:
v = "周五";
break;
case 6:
v = "周六";
break;
case 7:
v = "周日";
break;
}
return v;
}
@override
@@ -174,9 +114,6 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
0.rpx, 40.rpx, 30.rpx, 10.rpx),
child: Container(
width: MediaQuery.sizeOf(context).width,
// height:
// MediaQuery.sizeOf(context).height *
// 0.033,
constraints: BoxConstraints(
minHeight: 60.rpx,
),
@@ -329,38 +266,39 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
}
return Container();
}),
Obx(() {
if (userInfoController.model.login! != null &&
userInfoController.model.login! == 1) {
final list = deviceController.personnelList.value;
if (list.isNotEmpty &&
formFieldController.value == null) {
WidgetsBinding.instance.addPostFrameCallback((_) {
formFieldController.value = list[0]["mac"];
personInfo.value = list[0];
homeController.selectPerson.value = list[0];
homeController.selectDevcie.value = list[0]["mac"];
deviceController
.getSleeps(formFieldController.value);
homeController.updateAll();
});
}
if (homeController.selectDevcie.value != null &&
homeController.selectDevcie.value!.isNotEmpty)
return Expanded(
child: MHTNewSleepReportPage(
data: {
'date': DateTime.now().millisecondsSinceEpoch,
'mac': homeController.selectDevcie.value,
'person': homeController.selectPerson.value,
'backgroundImg':
'assets/images/new_background.png',
},
),
);
}
if (homeController.selectDevcie.value != null &&
homeController.selectDevcie.value!.isNotEmpty)
return Expanded(
child: NewSleepReportPage(
data: {
"tag": "123",
'date': DateTime.now().millisecondsSinceEpoch,
'mac': homeController.selectDevcie.value,
'person': homeController.selectPerson.value,
'backgroundImg':
'assets/images/new_background.png',
'arrow': false,
},
),
);
// }
return Container();
}),
// Expanded(
// child: NewSleepReportPage(
// data: {
// "tag": "123",
// 'date': DateTime.now().millisecondsSinceEpoch,
// 'mac': homeController.selectDevcie.value,
// 'person': homeController.selectPerson.value,
// 'backgroundImg': 'assets/images/new_background.png',
// },
// ),
// ),
// }
],
),
),

View File

@@ -9,6 +9,7 @@ import 'package:vbvs_app/common/util/MyUtils.dart';
import 'package:vbvs_app/component/NullDataComponentWidget.dart';
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
import 'package:vbvs_app/controller/home/home_controller.dart';
import 'package:vbvs_app/controller/main_bottom/global_controller.dart';
import 'package:vbvs_app/controller/user_info_controller.dart';
import 'package:vbvs_app/controller/weather/weather_controller.dart';
@@ -628,19 +629,17 @@ class _NewHomePageState extends State<NewHomePage> {
children: [
Text(
day['week'],
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
30.rpx,
letterSpacing:
0,
color:
stringToColor("#FFFFFF"),
),
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
30.rpx,
letterSpacing:
0,
color: stringToColor(
"#FFFFFF"),
),
),
SizedBox(
height: 12
@@ -648,19 +647,17 @@ class _NewHomePageState extends State<NewHomePage> {
Text(
day['date'],
// "哈哈",
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
letterSpacing:
0,
fontSize:
22.rpx,
color:
stringToColor("#929699"),
),
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
fontSize:
22.rpx,
color: stringToColor(
"#929699"),
),
),
SizedBox(
height: 39
@@ -797,17 +794,12 @@ class _NewHomePageState extends State<NewHomePage> {
SizedBox(width: 20.rpx),
Text(
'添加新设备'.tr,
style:
FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
"#85F5FF"),
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#85F5FF"),
letterSpacing: 0,
fontSize: 30.rpx,
),
),
],
),

View File

@@ -96,14 +96,12 @@ class IssueListPage extends GetView<IssueListController> {
alignment: AlignmentDirectional(-1, 0),
child: Text(
'暂无内容!',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.title_size,
fontWeight: FontWeight.w600,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.title_size,
fontWeight: FontWeight.w600,
),
),
),
),

View File

@@ -67,12 +67,13 @@ class IssuePreviewWidget extends GetView<IssuePreviewInfoController> {
child: Text(
issueListController.model.issueList![index]['title'] ??
'',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: Color(0xFFFFFFFF),
fontSize: AppFontsize.title_size,
letterSpacing: 0,
lineHeight: 1),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFFFFFFF),
fontSize: AppFontsize.title_size,
letterSpacing: 0,
// height: 1,
),
),
),
),

View File

@@ -286,12 +286,12 @@ class _MessagePageState extends State<MessagePage> {
SizedBox(width: 14.rpx), // 加号和文字间距
Text(
'全部已读',
style: FlutterFlowTheme.of(context).titleSmall.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
],
),

View File

@@ -39,7 +39,6 @@ class MyExperienceWidget extends GetView {
minHeight: 170,
),
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).secondaryBackground,
borderRadius: BorderRadius.circular(16),
),
child: Padding(
@@ -47,15 +46,11 @@ class MyExperienceWidget extends GetView {
child: Container(
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height * 0.187,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).secondaryBackground,
),
decoration: BoxDecoration(),
child: Container(
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height * 0.187,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context).secondaryBackground,
),
decoration: BoxDecoration(),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
@@ -68,30 +63,22 @@ class MyExperienceWidget extends GetView {
constraints: const BoxConstraints(
minHeight: 20,
),
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: Container(
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height * 0.018,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: Align(
alignment: const AlignmentDirectional(0, 0),
child: Text(
// widget!.name,
"体验时间:${DateFormat("yyyy-MM-dd HH:mm").format(DateTime.fromMillisecondsSinceEpoch(int.parse("${bookExperienceListController.model.bookInfoList[index]["bookTimeStart"]}")))}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFF182B7C),
fontSize: AppFontsize.title_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF182B7C),
fontSize: AppFontsize.title_size,
letterSpacing: 0,
),
),
),
),
@@ -113,20 +100,14 @@ class MyExperienceWidget extends GetView {
constraints: const BoxConstraints(
minHeight: 55,
),
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: Container(
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height * 0.034,
constraints: const BoxConstraints(
minHeight: 55,
),
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
@@ -136,15 +117,12 @@ class MyExperienceWidget extends GetView {
const AlignmentDirectional(-1, 0),
child: Text(
'门店:${data["name"] ?? ""}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
),
),
@@ -154,15 +132,12 @@ class MyExperienceWidget extends GetView {
const AlignmentDirectional(-1, 0),
child: Text(
'地址:${data['addressDetail'] ?? ""}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
),
),
@@ -172,15 +147,12 @@ class MyExperienceWidget extends GetView {
const AlignmentDirectional(-1, 0),
child: Text(
'电话:${data["hotline"]} ',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
),
),
@@ -198,17 +170,11 @@ class MyExperienceWidget extends GetView {
),
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height * 0.038,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: Container(
width: MediaQuery.sizeOf(context).width,
height: MediaQuery.sizeOf(context).height * 0.038,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: // Generated code for this Row Widget...
Row(
mainAxisSize: MainAxisSize.max,
@@ -230,10 +196,7 @@ class MyExperienceWidget extends GetView {
constraints: const BoxConstraints(
maxWidth: 50,
),
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
@@ -246,17 +209,14 @@ class MyExperienceWidget extends GetView {
),
Text(
'咨询',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
// color: Color(0xFF9EA4B7),
color:
const Color(0xFF333333),
fontSize: AppFontsize
.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
// color: Color(0xFF9EA4B7),
color: const Color(0xFF333333),
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
),
].divide(const SizedBox(width: 13)),
),
@@ -296,10 +256,7 @@ class MyExperienceWidget extends GetView {
constraints: const BoxConstraints(
maxWidth: 50,
),
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
),
decoration: BoxDecoration(),
child: Row(
mainAxisSize: MainAxisSize.max,
children: [
@@ -312,17 +269,14 @@ class MyExperienceWidget extends GetView {
),
Text(
'导航',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
// color: Color(0xFF9EA4B7),
color:
const Color(0xFF333333),
fontSize: AppFontsize
.small_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
// color: Color(0xFF9EA4B7),
color: const Color(0xFF333333),
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
),
].divide(const SizedBox(width: 13)),
),
@@ -393,15 +347,12 @@ class MyExperienceWidget extends GetView {
2
? const Color(0xFFD3B684)
: stringToColor("#D3D3D3"),
textStyle: FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
elevation: 0,
borderSide: const BorderSide(
color: Colors.transparent,

View File

@@ -439,12 +439,12 @@ class _MinePageState extends State<NewMinePage> {
login == 1
? (userInfoController.model.user!.nick_name ?? '未命名'.tr)
: "未命名".tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: themeController.currentColor.sc3,
fontSize: AppConstants().title_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc3,
fontSize: AppConstants().title_text_fontSize,
letterSpacing: 0.0,
),
),
Text(
login == 1
@@ -459,12 +459,12 @@ class _MinePageState extends State<NewMinePage> {
}
})()
: "未知数据".tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(height: 20.rpx)),
);

View File

@@ -181,17 +181,14 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'当前版本',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
lineHeight: 1.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
// height: 1.0,
),
),
].divide(SizedBox(width: 22.rpx)),
),
@@ -239,16 +236,14 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'切换语言',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
lineHeight: 1.0),
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
// height: 1.0,
),
),
].divide(SizedBox(width: 22.rpx)),
),
@@ -262,17 +257,13 @@ class _SettingPageState extends State<SettingPage> {
.value
?.language_name ??
'简体中文',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Inter',
color:
Color(0xFFD9E3EB),
fontSize: 26.rpx,
letterSpacing: 0.0,
lineHeight: 1.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFD9E3EB),
fontSize: 26.rpx,
letterSpacing: 0.0,
// height: 1.0,
),
);
}),
SvgPicture.asset(
@@ -312,17 +303,14 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'设置页.关于我们'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
lineHeight: 1.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
// height: 1.0,
),
),
].divide(SizedBox(width: 22.rpx)),
),
@@ -364,17 +352,14 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'设置页.用户协议'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
lineHeight: 1.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
// height: 1.0,
),
),
].divide(SizedBox(width: 22.rpx)),
),
@@ -416,17 +401,14 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'设置页.隐私协议'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
lineHeight: 1.0,
),
style: TextStyle(
fontFamily: 'Inter',
color: Colors.white,
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
// height: 1.0,
),
),
].divide(SizedBox(width: 22.rpx)),
),
@@ -490,15 +472,13 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'设置页.退出登录'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: Color(0xFF003058),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: Color(0xFF003058),
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(
width: 17.rpx,
@@ -537,16 +517,13 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'设置页.注销账号'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color:
themeController.currentColor.sc9,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc9,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(
width: 17.rpx,
@@ -582,30 +559,24 @@ class _SettingPageState extends State<SettingPage> {
children: [
Text(
'ICP备案号:浙ICP备2023000785号-1'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController
.currentColor.sc4,
fontFamily: 'Inter',
fontSize: AppConstants()
.smaller_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc4,
fontFamily: 'Inter',
fontSize: AppConstants()
.smaller_text_fontSize,
letterSpacing: 0.0,
),
),
Text(
'Copyright © 202-2025 嘉兴太和信息技术有限责任公司 版权所有'
.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color: themeController
.currentColor.sc4,
fontFamily: 'Inter',
fontSize: AppConstants()
.smaller_text_fontSize,
letterSpacing: 0.0,
),
style: TextStyle(
color: themeController.currentColor.sc4,
fontFamily: 'Inter',
fontSize: AppConstants()
.smaller_text_fontSize,
letterSpacing: 0.0,
),
),
].divide(SizedBox(
height: 17.rpx,

View File

@@ -1,6 +1,5 @@
import 'dart:async';
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
import 'package:ef/ef.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@@ -159,14 +158,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
// ),
child: Text(
"保存",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0XFF011D33),
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0XFF011D33),
letterSpacing: 0,
fontSize: 30.rpx,
),
),
),
))
@@ -234,15 +231,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'姓名',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
),
Container(
width: 300.rpx,
@@ -305,15 +299,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'性别',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () {
@@ -357,16 +348,13 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
'${controller.model.peopleList[index]['gender'] == 1 ? '' : ''}',
textAlign:
TextAlign.right,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
),
),
SizedBox(
@@ -398,14 +386,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'身高(cm)',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () {
@@ -442,15 +428,11 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
null
? "${controller.model.peopleList[index]['height']} cm"
: '',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
),
SizedBox(width: 16.rpx),
Icon(Icons.expand_more,
@@ -476,14 +458,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'体重(kg)',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () {
@@ -520,15 +500,11 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
null
? "${controller.model.peopleList[index]['weight']} kg"
: '',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
),
SizedBox(width: 16.rpx),
Icon(Icons.expand_more,
@@ -555,15 +531,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'生日',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () {
@@ -621,16 +594,13 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
: '',
textAlign:
TextAlign.right,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
),
),
),
SizedBox(
@@ -662,14 +632,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'联系人',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
letterSpacing: 0,
),
),
Container(
width: 300.rpx,

View File

@@ -159,16 +159,12 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.applyRepairModel!
.device_name ??
'未命名',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white,
),
),
),
Align(
@@ -182,17 +178,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.applyRepairModel!
.device_category ??
'未命名'),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
Align(
@@ -206,17 +198,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.applyRepairModel!
.device_type ??
'未命名'),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
Align(
@@ -230,17 +218,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.applyRepairModel!
.device_id ??
'未命名'),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
Align(
@@ -255,17 +239,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.id
.toString() ??
'未命名'),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
Align(
@@ -279,17 +259,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.model
.applyRepairModel!
.create_time!)),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
Align(
@@ -303,17 +279,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.applyRepairModel!
.desc ??
'未命名'),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(
0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
Padding(
@@ -377,14 +349,12 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.centerStart, // 文字左对齐
child: Text(
'报修状态',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
),
),
),
),
@@ -483,19 +453,15 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
// color: FlutterFlowTheme.of(context)
// .secondaryBackground,
color: Colors.white,
textStyle:
FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily:
'Readex Pro',
// color: Color(0xFF333333),
// color: stringToColor("#D3B684"),
color: stringToColor(
"#117EFD"),
fontSize: 11,
letterSpacing: 0,
),
textStyle: TextStyle(
fontFamily: 'Readex Pro',
// color: Color(0xFF333333),
// color: stringToColor("#D3B684"),
color:
stringToColor("#117EFD"),
fontSize: 11,
letterSpacing: 0,
),
elevation: 0,
borderSide: BorderSide(
// color: Color(0xFFC8CBD2),
@@ -558,18 +524,14 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
-1, 0),
child: Text(
'评价状态',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF333333),
fontSize: 15,
letterSpacing:
0.0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: const Color(
0xFF333333),
fontSize: 15,
letterSpacing: 0.0,
),
),
),
),
@@ -617,17 +579,16 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
.model
.applyRepairModel!
.score_time!),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0.0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0.0,
),
),
),
),
@@ -652,17 +613,15 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
0),
child: Text(
'已评价',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0.0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0.0,
),
),
),
),

View File

@@ -64,7 +64,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
// repairListController
// .model.repairList[index].device_category ??
// '',
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Readex Pro',
// color: Color(0xFF333333),
// fontSize: 30.rpx,
@@ -76,7 +76,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
// alignment: AlignmentDirectional(-1, 0),
// child: Text(
// "报修单号:${repairListController.model.repairList[index].id}",
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Readex Pro',
// color: Color(0xFFC8CBD2),
// fontSize: AppFontsize.small_text_size,
@@ -91,7 +91,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
// (MyUtils.formatDateTime(repairListController
// .model.repairList[index].create_time!) ??
// ''),
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Readex Pro',
// color: Color(0xFFC8CBD2),
// fontSize: AppFontsize.small_text_size,
@@ -117,7 +117,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
// child: Text(
// repairListController.model.repairList[index].status ??
// '',
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Readex Pro',
// color: Color(0xFF333333),
// fontSize: AppFontsize.normal_text_size,

View File

@@ -247,14 +247,12 @@ class DeviceRepairPage extends GetView<RepairListController> {
),
child: Text(
"我要报修",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
),
),
)),

View File

@@ -42,17 +42,17 @@ class RepairStatusWidget extends GetView {
MyUtils.formatDateTime(repairInfoController
.model.repairProcessList[index].create_time!) ??
'未知时间',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color: index ==
repairInfoController
.model.repairProcessList.length -
1
? Colors.white
: Colors.white,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color: index ==
repairInfoController
.model.repairProcessList.length -
1
? Colors.white
: Colors.white,
),
),
),
),
@@ -65,33 +65,27 @@ class RepairStatusWidget extends GetView {
repairInfoController
.model.repairProcessList[index].status ??
'未知状态',
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color: repairInfoController
.model.repairProcessList[index].status ==
RepairStatus.pending
? AppColors().check_Color
: repairInfoController
.model
.repairProcessList[index]
.status ==
RepairStatus.approved ||
repairInfoController
.model
.repairProcessList[index]
.status ==
'维修中'
? AppColors().repair_Color
: repairInfoController
.model
.repairProcessList[index]
.status ==
RepairStatus.completed
? AppColors().finish_Color
: AppColors().unOp_Color, // 根据状态设置文字颜色
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color: repairInfoController
.model.repairProcessList[index].status ==
RepairStatus.pending
? AppColors().check_Color
: repairInfoController.model.repairProcessList[index]
.status ==
RepairStatus.approved ||
repairInfoController.model
.repairProcessList[index].status ==
'维修中'
? AppColors().repair_Color
: repairInfoController.model
.repairProcessList[index].status ==
RepairStatus.completed
? AppColors().finish_Color
: AppColors().unOp_Color, // 根据状态设置文字颜色
),
),
),
),
@@ -105,12 +99,12 @@ class RepairStatusWidget extends GetView {
? '未备注'
: repairInfoController
.model.repairProcessList[index].desc!,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 20.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 20.rpx,
letterSpacing: 0,
),
),
),
],

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:vbvs_app/common/color/ServiceConstant.dart';

View File

@@ -108,15 +108,11 @@ class ScorePage extends GetView<mh.ScoreController> {
AlignmentDirectional(0, 0),
child: Text(
'我要评价',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white),
),
),
Row(
@@ -295,18 +291,13 @@ class ScorePage extends GetView<mh.ScoreController> {
}
return Text(
scoreText,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: scoreColor,
fontWeight:
FontWeight
.bold),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: scoreColor,
fontWeight:
FontWeight.bold),
);
}),
),
@@ -318,16 +309,11 @@ class ScorePage extends GetView<mh.ScoreController> {
.fromSTEB(0, 17, 0, 0),
child: Text(
'再多的溢美之词都比不上您真心的评价。我们愿付出200%的努力只为您100%的满意~感谢您的支持与厚爱!',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color:
Color(0xFF9AA0B3)),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color: Color(0xFF9AA0B3)),
),
),
),
@@ -443,14 +429,12 @@ class ScorePage extends GetView<mh.ScoreController> {
),
child: Text(
"提交",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
),
),
)),

View File

@@ -55,8 +55,7 @@ class SearchWidget extends GetView {
width: 100.rpx,
height: 60.rpx,
decoration: BoxDecoration(
color:
FlutterFlowTheme.of(context).secondaryBackground,
color: Colors.white,
),
child: Align(
alignment: AlignmentDirectional(-1, 0),
@@ -65,21 +64,17 @@ class SearchWidget extends GetView {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: hint,
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: Color(0XFFC8CBD2)),
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: Color(0XFFC8CBD2)),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Color(0x00000000),
@@ -96,14 +91,12 @@ class SearchWidget extends GetView {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 1.rpx,
),
borderRadius: BorderRadius.circular(8.rpx),
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context).error,
width: 1.rpx,
),
borderRadius: BorderRadius.circular(8.rpx),
@@ -113,16 +106,14 @@ class SearchWidget extends GetView {
contentPadding: EdgeInsets.symmetric(
vertical: 12.rpx, horizontal: 12.rpx), // 关键设置
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
color: Colors.black,
letterSpacing: 0.0,
),
cursorColor:
FlutterFlowTheme.of(context).primaryText,
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
color: Colors.black,
letterSpacing: 0.0,
),
// cursorColor:
// FlutterFlowTheme.of(context).primaryText,
// validator: _model
// .textControllerValidator
// .asValidator(context),
@@ -147,12 +138,12 @@ class SearchWidget extends GetView {
),
Text(
'搜索'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"), //固定
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: stringToColor("#333333"), //固定
),
),
].divide(SizedBox(width: 26.rpx)),
),

View File

@@ -126,14 +126,12 @@ class Smys extends GetView<SleepingHabitController> {
children: [
Text(
'睡眠隐私功能',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
Container(
@@ -181,14 +179,12 @@ class Smys extends GetView<SleepingHabitController> {
children: [
Text(
'开始时间',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () async {
@@ -210,14 +206,12 @@ class Smys extends GetView<SleepingHabitController> {
children: [
Text(
"${controller.model.smysStartTimeToString}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
SizedBox(
width: 16.rpx,
@@ -259,14 +253,12 @@ class Smys extends GetView<SleepingHabitController> {
children: [
Text(
'结束时间',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 26.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () async {
@@ -288,14 +280,12 @@ class Smys extends GetView<SleepingHabitController> {
children: [
Text(
"${controller.model.smysEndTimeToString}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
SizedBox(
width: 16.rpx,
@@ -325,14 +315,12 @@ class Smys extends GetView<SleepingHabitController> {
decoration: BoxDecoration(),
child: Text(
'*注:开启睡眠隐私功能后,在设置的时间段内,将不会采集您的睡眠数据。',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 20.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 20.rpx,
letterSpacing: 0,
),
),
),
)

View File

@@ -74,12 +74,12 @@ class _UpdateUserPageState extends State<EditUserPage> {
children: [
Text(
'编辑资料'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
),
Positioned(
left: 0,
@@ -186,14 +186,12 @@ class _UpdateUserPageState extends State<EditUserPage> {
child: Center(
child: Text(
'点击更换头像'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: stringToColor("#85F5FF"),
),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: stringToColor("#85F5FF"),
),
),
),
),
@@ -242,25 +240,19 @@ class _UpdateUserPageState extends State<EditUserPage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '未命名'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc4,
),
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc4,
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: Color(0x00000000),
@@ -281,9 +273,6 @@ class _UpdateUserPageState extends State<EditUserPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(
context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -293,9 +282,6 @@ class _UpdateUserPageState extends State<EditUserPage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(
context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -304,15 +290,13 @@ class _UpdateUserPageState extends State<EditUserPage> {
),
filled: false,
),
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,
),
textAlign: TextAlign.center,
cursorColor: themeController
.currentColor.sc3,

View File

@@ -128,25 +128,18 @@ class FindPasswordPage extends GetView<FindPasswordController> {
// autofocus: true,
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入手机号'.tr,
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,
errorBorder: InputBorder.none,
@@ -157,15 +150,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
.fromSTEB(20.rpx, 0, 0,
0.rpx),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
),
@@ -204,33 +193,21 @@ class FindPasswordPage extends GetView<FindPasswordController> {
},
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
20.rpx,
letterSpacing:
0,
),
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: 20.rpx,
letterSpacing: 0,
),
hintText: '请输验证码'.tr,
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: Color(
0xFF929699),
fontSize:
26.rpx,
letterSpacing:
0,
),
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color:
Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -244,15 +221,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
.fromSTEB(20.rpx,
0, 0, 0.rpx),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
),
@@ -383,28 +356,18 @@ class FindPasswordPage extends GetView<FindPasswordController> {
obscureText:
controller.model.pdshow!,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入新密码'.tr,
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -434,15 +397,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
},
),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
);
}),
),
@@ -479,28 +438,18 @@ class FindPasswordPage extends GetView<FindPasswordController> {
obscureText:
controller.model.cpdshow!,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '确认新密码',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -530,15 +479,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
},
),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
);
}),
),
@@ -590,7 +535,7 @@ class FindPasswordPage extends GetView<FindPasswordController> {
}
String msg = await controller
.confirmCode(context);
if (msg.isEmpty) {
if (msg.isEmpty) {
Get.toNamed("/loginPage");
}
},
@@ -612,15 +557,12 @@ class FindPasswordPage extends GetView<FindPasswordController> {
),
child: Text(
"提交",
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0XFF003058),
letterSpacing: 0,
fontSize: 26.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0XFF003058),
letterSpacing: 0,
fontSize: 26.rpx,
),
),
),
)),

View File

@@ -287,19 +287,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'密码登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color:
stringToColor("#84F5FF"),
fontSize:
AppFontsize.title_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize
.title_size,
letterSpacing:
0,
),
),
),
),
@@ -385,20 +384,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'短信登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
),
),
@@ -487,19 +484,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'密码登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
),
),
@@ -582,19 +578,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'短信登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color:
stringToColor("#84F5FF"),
fontSize:
AppFontsize.title_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize
.title_size,
letterSpacing:
0,
),
),
),
),
@@ -673,29 +668,19 @@ class MHTLoginPage extends GetView<MHTLoginController> {
controller.model.account,
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '请输入账号',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFFD2D2D2),
fontSize: 13.px,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFD2D2D2),
fontSize: 13.px,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -708,16 +693,12 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.fromSTEB(
10, 0, 0, 5),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -768,35 +749,23 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.model.password,
decoration:
InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '请输入密码',
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: Color(
0xFFD2D2D2),
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color:
Color(0xFFD2D2D2),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -834,16 +803,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -1007,30 +973,20 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '请输入手机号'.tr,
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFFD2D2D2),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFD2D2D2),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -1043,16 +999,12 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.fromSTEB(
10, 0, 0, 5),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -1101,35 +1053,23 @@ class MHTLoginPage extends GetView<MHTLoginController> {
obscureText: false,
decoration:
InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '请输入验证码',
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: Color(
0xFFD2D2D2),
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color:
Color(0xFFD2D2D2),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -1143,16 +1083,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.fromSTEB(10, 0,
0, 5),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -1421,9 +1358,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
side: BorderSide(
width: 1.5,
color: FlutterFlowTheme
.of(context)
.secondaryText,
color:
Colors.white,
),
activeColor:
stringToColor(
@@ -1469,18 +1405,14 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 0),
child: Text(
'我已阅读并同意'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize: 12,
letterSpacing:
0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color:
Colors.white,
fontSize: 12,
letterSpacing: 0,
),
),
),
Align(
@@ -1498,19 +1430,16 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'《用户协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
style: TextStyle(
fontFamily:
'Readex Pro',
color:
stringToColor(
"FF9F66"),
fontSize:
12,
letterSpacing:
0,
),
fontSize: 12,
letterSpacing:
0,
),
),
),
),
@@ -1520,18 +1449,14 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 0),
child: Text(
''.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize: 12,
letterSpacing:
0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color:
Colors.white,
fontSize: 12,
letterSpacing: 0,
),
),
),
Align(
@@ -1549,19 +1474,16 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'《隐私协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
style: TextStyle(
fontFamily:
'Readex Pro',
color:
stringToColor(
"FF9F66"),
fontSize:
12,
letterSpacing:
0,
),
fontSize: 12,
letterSpacing:
0,
),
),
),
),
@@ -1657,19 +1579,17 @@ class MHTLoginPage extends GetView<MHTLoginController> {
child: Text(
'注:首次登录会自动创建账号'
.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
"#FFFFFF"),
fontSize:
23.rpx,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
"#FFFFFF"),
fontSize:
23.rpx,
letterSpacing:
0,
),
),
),
],
@@ -1843,8 +1763,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
BorderSide(
width:
1.5,
color: FlutterFlowTheme.of(context)
.secondaryText,
color: Colors.white,
),
activeColor:
stringToColor(
@@ -1919,19 +1838,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'找回密码'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize.small_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize
.small_text_size,
letterSpacing:
0,
),
),
),
),
@@ -1985,19 +1903,17 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'注册'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color:
stringToColor("#84F5FF"),
fontSize:
AppFontsize.small_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize.small_text_size,
letterSpacing:
0,
),
),
)),
),
@@ -2073,7 +1989,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
// }
// await loginController
// .wxLoginSendAuth(context);
TopSlideNotification.show(context,text: "测试阶段,暂不支持".tr);
TopSlideNotification.show(context,
text: "测试阶段,暂不支持".tr);
},
child: Container(
width: 90.rpx,
@@ -2135,28 +2052,24 @@ class MHTLoginPage extends GetView<MHTLoginController> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'合肥眠花糖家具有限责任公司版权所有',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.explain_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.explain_size,
letterSpacing: 0,
),
),
),
Align(
alignment: AlignmentDirectional(0, 0),
child: Text(
'Copyright© 2019-2029',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.explain_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.explain_size,
letterSpacing: 0,
),
),
),
// Align(

View File

@@ -118,24 +118,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入手机号'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,
errorBorder: InputBorder.none,
@@ -145,13 +139,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
EdgeInsetsDirectional.fromSTEB(
20.rpx, 0, 0, 10.rpx),
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
),
@@ -185,25 +177,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
obscureText:
controller.model.pdshow!,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入密码'.tr,
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,
errorBorder: InputBorder.none,
@@ -231,15 +216,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
);
})),
),
@@ -274,25 +255,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
obscureText:
controller.model.cpdshow!,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入确认密码'.tr,
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,
errorBorder: InputBorder.none,
@@ -320,15 +294,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
);
})),
),
@@ -365,28 +335,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
// focusNode: _focusNode4,
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入验证码',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
focusedBorder:
@@ -399,15 +359,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
.fromSTEB(20.rpx, 0,
0, 0.rpx),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
),
),
),
@@ -579,9 +535,7 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
side: BorderSide(
width: 1.5,
color: FlutterFlowTheme
.of(context)
.secondaryText,
color: Colors.white,
),
activeColor:
const Color(
@@ -632,18 +586,13 @@ class RegisterPage extends GetView<MHTRegisterController> {
0, 0),
child: Text(
'我已阅读并同意'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize: 12,
letterSpacing:
0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 12,
letterSpacing: 0,
),
),
),
Align(
@@ -659,18 +608,15 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
child: Text(
'《用户协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
style: TextStyle(
fontFamily:
'Readex Pro',
color:
stringToColor(
"FF9F66"),
fontSize: 12,
letterSpacing:
0,
),
fontSize: 12,
letterSpacing: 0,
),
),
),
),
@@ -680,18 +626,13 @@ class RegisterPage extends GetView<MHTRegisterController> {
0, 0),
child: Text(
''.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize: 12,
letterSpacing:
0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: 12,
letterSpacing: 0,
),
),
),
Align(
@@ -707,18 +648,15 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
child: Text(
'《隐私协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
style: TextStyle(
fontFamily:
'Readex Pro',
color:
stringToColor(
"FF9F66"),
fontSize: 12,
letterSpacing:
0,
),
fontSize: 12,
letterSpacing: 0,
),
),
),
),
@@ -776,15 +714,12 @@ class RegisterPage extends GetView<MHTRegisterController> {
),
child: Text(
"提交".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color:
stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,
fontSize: 30.rpx,
),
),
),
)),

View File

@@ -232,7 +232,7 @@ class _RxhxMhtState extends State<RxhxMht> {
// children: [
// Text(
// '柔性唤醒',
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Readex Pro',
// color: Colors.white,
// letterSpacing: 0,
@@ -289,14 +289,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'柔性唤醒功能',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
Container(
@@ -356,14 +354,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'唤醒时间',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () async {
@@ -384,14 +380,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
"${controller.model.rxhxWakeTimeToString}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
SizedBox(
width: 16.rpx,
@@ -421,14 +415,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'按摩',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () {
@@ -451,14 +443,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
controller.model.rxhxIsAnMo ? '' : '',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
SizedBox(
width: 16.rpx,
@@ -488,14 +478,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'唤醒部位',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
InkWell(
onTap: () {
@@ -516,14 +504,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
location[controller.model.rxhxLocation],
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
SizedBox(
width: 16.rpx,
@@ -557,14 +543,12 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'自定义',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0,
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
@@ -633,14 +617,12 @@ class _RxhxMhtState extends State<RxhxMht> {
decoration: const BoxDecoration(),
child: Text(
'*注:开启该功能后,在设置的时间点,设备将启动一段固定时长的柔性唤醒功能。',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 20.rpx,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 20.rpx,
letterSpacing: 0,
),
),
),
Spacer(),

View File

@@ -60,12 +60,12 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
/// 居中标题
Text(
'修改密码'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
),
/// 左边返回按钮
@@ -137,18 +137,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'输入手机号码'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color:
Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -178,29 +174,18 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
obscureText: false,
decoration:
InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing: 0,
),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -231,9 +216,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
UnderlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme
.of(context)
.error,
color: Colors.red,
width: 2,
),
borderRadius:
@@ -245,9 +228,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
UnderlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme
.of(context)
.error,
color: Colors.red,
width: 2,
),
borderRadius:
@@ -260,19 +241,15 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
.fromSTEB(8,
0, 0, 8),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: themeController
.currentColor
.sc4,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: themeController
.currentColor.sc4,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -295,18 +272,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'输入验证码',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color:
Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -363,33 +336,31 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0,
),
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
hintText:
'请输验证码',
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: themeController
.currentColor
.sc4,
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0,
),
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
color: themeController
.currentColor
.sc4,
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
enabledBorder:
InputBorder
.none,
@@ -409,17 +380,16 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
0,
12),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
letterSpacing:
0,
),
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
),
),
@@ -537,17 +507,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'输入新密码',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -575,35 +542,24 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
decoration:
InputDecoration(
hintText: "请输入新密码".tr,
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: themeController
.currentColor
.sc4,
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color:
themeController
.currentColor
.sc4,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -634,9 +590,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
UnderlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme
.of(context)
.error,
color: Colors.red,
width: 2,
),
borderRadius:
@@ -648,9 +602,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
UnderlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme
.of(context)
.error,
color: Colors.red,
width: 2,
),
borderRadius:
@@ -689,18 +641,15 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
},
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Color(
0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color:
Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
);
}),
),
@@ -721,17 +670,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'确认新密码',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
),
),
),
@@ -760,35 +706,24 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
InputDecoration(
hintText:
"请输入确认密码".tr,
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: themeController
.currentColor
.sc4,
fontSize:
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color:
themeController
.currentColor
.sc4,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
enabledBorder:
UnderlineInputBorder(
borderSide:
@@ -819,9 +754,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
UnderlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme
.of(context)
.error,
color: Colors.red,
width: 2,
),
borderRadius:
@@ -833,9 +766,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
UnderlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme
.of(context)
.error,
color: Colors.red,
width: 2,
),
borderRadius:
@@ -875,18 +806,15 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
},
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color: Color(
0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily:
'Readex Pro',
color:
Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
);
}),
),
@@ -950,14 +878,12 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
child: Center(
child: Text(
'确定'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily: 'Readex Pro',
color: stringToColor("#003058"),
fontSize: AppFontsize.normal_text_size,
letterSpacing: 0,
),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#003058"),
fontSize: AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
),
),