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

View File

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

View File

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

View File

@@ -246,11 +246,13 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
'date': widget.data['time'] != null
? int.parse(widget.data['time'].toString())
: DateTime.now().millisecondsSinceEpoch,
"mac": widget.data['mac'] != null && widget.data['mac'].isNotEmpty? widget.data['mac']:'aaaaaaeeeeeq',
"mac": widget.data['mac'] != null && widget.data['mac'].isNotEmpty
? widget.data['mac']
: 'aaaaaaeeeeeq',
'type': 1,
'name': 'sleep', //'sleep', 'heartRate' 或 'breathe'
'itemName': widget.data['id'],
'person':widget.data['person'],
'person': widget.data['person'],
});
}
},
@@ -267,7 +269,7 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
children: [
Text(
'${widget.data['name']}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -287,7 +289,7 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
// children: [
// Text(
// '${widget.data['value']}',
// style: FlutterFlowTheme.of(context).bodyMedium.override(
// style: TextStyle(
// fontFamily: 'Inter',
// fontSize: 36.rpx,
// letterSpacing: 0.0,
@@ -374,7 +376,7 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
),
child: Text(
'${widget.data['level']}',
style: FlutterFlowTheme.of(context).titleSmall.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
@@ -388,7 +390,7 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
Text(
"正常值".tr +
'${(widget.data['range'] ?? '').toString().isEmpty ? '未知数据'.tr : widget.data['range']}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants().small_text_fontSize,
letterSpacing: 0.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:flutterflow_ui/flutterflow_ui.dart';
@@ -84,7 +83,7 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 14.rpx),
child: Text(
'${week}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants().title_text_fontSize,
letterSpacing: 0.0,
@@ -96,7 +95,7 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 33.rpx),
child: Text(
'${day}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 20.rpx,
letterSpacing: 0.0,
@@ -112,7 +111,7 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
children: [
Text(
(widget.score?.isEmpty ?? true) ? '--' : widget.score!,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
@@ -127,9 +126,7 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
EdgeInsetsDirectional.fromSTEB(0, 16.rpx, 0, 0.rpx),
child: Text(
''.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants().small_text_fontSize,
letterSpacing: 0.0,
@@ -160,7 +157,7 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
EdgeInsetsDirectional.fromSTEB(16.rpx, 0, 16.rpx, 0),
iconPadding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
color: widget.textColor ?? themeController.currentColor.sc4,
textStyle: FlutterFlowTheme.of(context).titleSmall.override(
textStyle: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,

View File

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

View File

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

View File

@@ -57,99 +57,100 @@ class AddressController extends GetControllerEx<AddressModel> {
address['phone'] = model.phone;
address['isChecked'] = model.ischecked;
try {
final data = await ef.client.rpc("get_now_datetime");
final response = await ef.client.from("app_user_address").update({
'province': address["province"],
'city': address["city"],
'county': address["county"],
'street': address["street"],
'detail': address["detail"],
'name': address["name"],
'phone': address["phone"],
'ischecked': address['isChecked'] ? 1 : 0,
'update_time':
DateFormat("yyyy-MM-dd HH:mm:ss").parse("$data").toString(),
}).eq("id", address['id']);
} catch (e) {
print('Error fetching repairs: $e');
return e.toString();
}
// try {
// final data = await ef.client.rpc("get_now_datetime");
// final response = await ef.client.from("app_user_address").update({
// 'province': address["province"],
// 'city': address["city"],
// 'county': address["county"],
// 'street': address["street"],
// 'detail': address["detail"],
// 'name': address["name"],
// 'phone': address["phone"],
// 'ischecked': address['isChecked'] ? 1 : 0,
// 'update_time':
// DateFormat("yyyy-MM-dd HH:mm:ss").parse("$data").toString(),
// }).eq("id", address['id']);
// } catch (e) {
// print('Error fetching repairs: $e');
// return e.toString();
// }
return '';
}
addAddress(AddressModel model) async {
try {
final UserInfoController userInfoController =
Get.find<UserInfoController>();
UserModel user = userInfoController.model.user!;
// try {
// final UserInfoController userInfoController =
// Get.find<UserInfoController>();
// UserModel user = userInfoController.model.user!;
// 设置省市区街道名称
if (model.addressList != null && model.addressList!.isNotEmpty) {
if (model.addressList!.length > 0)
model.province = model.addressList![0].name; // 第一个元素为省
if (model.addressList!.length > 1)
model.city = model.addressList![1].name; // 第二个元素为市
if (model.addressList!.length > 2)
model.county = model.addressList![2].name; // 第三个元素为区
if (model.addressList!.length > 3)
model.street = model.addressList![3].name; // 第四个元素为街道
}
// // 设置省市区街道名称
// if (model.addressList != null && model.addressList!.isNotEmpty) {
// if (model.addressList!.length > 0)
// model.province = model.addressList![0].name; // 第一个元素为省
// if (model.addressList!.length > 1)
// model.city = model.addressList![1].name; // 第二个元素为市
// if (model.addressList!.length > 2)
// model.county = model.addressList![2].name; // 第三个元素为区
// if (model.addressList!.length > 3)
// model.street = model.addressList![3].name; // 第四个元素为街道
// }
// 查询数据库是否已有该用户的地址
final existingAddresses = await ef.client
.from('app_user_address')
.select()
.eq('user_id', user.uid!);
// // 查询数据库是否已有该用户的地址
// final existingAddresses = await ef.client
// .from('app_user_address')
// .select()
// .eq('user_id', user.uid!);
// 如果没有地址,将新增地址默认选中
if (existingAddresses.isEmpty) {
model.ischecked = true;
} else if (model.ischecked == true) {
// 如果新地址被选中,将其他地址的 `ischecked` 字段设为 `0`
await ef.client
.from('app_user_address')
.update({'ischecked': 0}).eq('user_id', user.uid!);
}
// // 如果没有地址,将新增地址默认选中
// if (existingAddresses.isEmpty) {
// model.ischecked = true;
// } else if (model.ischecked == true) {
// // 如果新地址被选中,将其他地址的 `ischecked` 字段设为 `0`
// await ef.client
// .from('app_user_address')
// .update({'ischecked': 0}).eq('user_id', user.uid!);
// }
// 添加新地址
final response = await ef.client.from('app_user_address').insert({
'province': model.province,
'city': model.city,
'county': model.county,
'street': model.street,
'detail': model.detail,
'name': model.name,
'phone': model.phone,
'ischecked': model.ischecked! ? 1 : 0,
'user_id': user.uid,
});
} catch (e) {
print(e);
}
// // 添加新地址
// final response = await ef.client.from('app_user_address').insert({
// 'province': model.province,
// 'city': model.city,
// 'county': model.county,
// 'street': model.street,
// 'detail': model.detail,
// 'name': model.name,
// 'phone': model.phone,
// 'ischecked': model.ischecked! ? 1 : 0,
// 'user_id': user.uid,
// });
// } catch (e) {
// print(e);
// }
}
Future<List<AddressNode>> getData({int? level, int? pid}) async {
// 构建查询
var query = ef.from("app_area_city").select();
return [];
// var query = ef.from("app_area_city").select();
// 如果 pid 不为 null添加 pid 的条件
if (pid != null) {
query = query.eq("pid", pid);
}
if (level != null) {
query = query.eq("deep", level);
}
List arr = await query;
// // 如果 pid 不为 null添加 pid 的条件
// if (pid != null) {
// query = query.eq("pid", pid);
// }
// if (level != null) {
// query = query.eq("deep", level);
// }
// List arr = await query;
List<AddressNode> addressNodes = arr.map((item) {
return AddressNode.fromJson({
"name": item["ext_name"], // ext_name 对应 name
"code": item["id"], // id 对应 code
"letter": item["pinyin_prefix_upper"], // pinyin_prefix_upper 对应 letter
});
}).toList();
// List<AddressNode> addressNodes = arr.map((item) {
// return AddressNode.fromJson({
// "name": item["ext_name"], // ext_name 对应 name
// "code": item["id"], // id 对应 code
// "letter": item["pinyin_prefix_upper"], // pinyin_prefix_upper 对应 letter
// });
// }).toList();
return addressNodes;
// return addressNodes;
}
}

View File

@@ -32,9 +32,9 @@ class UserInfoModel {
String? appVersion; //app版本信息
@JsonKey(ignore: true)
Session? superbase_session;
// Session? superbase_session;
@JsonKey(ignore: true)
User? superbase_user;
// User? superbase_user;
String? img_bucket = 'user';
int? login = 0; //0未登录 1 登录

View File

@@ -115,9 +115,13 @@ Future<void> main() async {
}
initLanguageSetting() {
try {
Get.put(LanguageController());
LanguageController languageController = Get.find();
languageController.initLanuageList();
} catch (e) {
print(e);
}
}
// 初始化微信开放平台注册

View File

@@ -42,7 +42,7 @@ getOnePicker(BuildContext context, List arr, int checkIndex,
// ),
// ),
child: Text("${arr[index]}$unit",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: textColor,
letterSpacing: 0,
@@ -84,7 +84,7 @@ getOnePickers(
return Center(
child: Text(
"${arr[index]}$unit",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: isSelected
? const Color(0xFF011D33) // ✅ 选中项颜色
@@ -172,9 +172,7 @@ Future showDateSelectionDialog(BuildContext context,
),
Text(
title,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,
@@ -331,9 +329,7 @@ Future<void> showWeightPickerDialog(
),
)),
Text(title,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,
@@ -461,9 +457,7 @@ Future<void> showHeightPickerDialog(
),
)),
Text(title,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,
@@ -728,9 +722,7 @@ Future showDayTimeSelectionDialog(
),
Text(
title,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,
@@ -871,9 +863,7 @@ Future showOneSelectionDialog(
),
),
Text(title,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,

View File

@@ -368,15 +368,13 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
alignment: Alignment.center,
child: Text(
'体征检测设备.我的e护'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
color: bodyDeviceController
color:
bodyDeviceController
.model
.type ==
2
@@ -422,15 +420,13 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
alignment: Alignment.center,
child: Text(
'体征检测设备.云关爱'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.title_text_fontSize,
letterSpacing: 0.0,
color: bodyDeviceController
color:
bodyDeviceController
.model
.type ==
1
@@ -511,20 +507,13 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
EdgeInsets.fromLTRB(
12.rpx, 0, 0.rpx, 0),
isDense: true,
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '体征检测设备.输入关键词'.tr,
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -555,9 +544,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(
context)
.error,
Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -568,9 +555,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(
context)
.error,
Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -579,14 +564,9 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
),
filled: false,
fillColor:
FlutterFlowTheme.of(
context)
.secondaryBackground,
Colors.white,
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -633,10 +613,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
},
child: Text(
'体征检测设备.搜索'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,

View File

@@ -420,7 +420,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
decoration: InputDecoration(
isDense: true,
hintText: '请输入人员名称'.tr,
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -441,13 +441,13 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
borderRadius: BorderRadius.circular(8.rpx),
),
),
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: Colors.black,
),
cursorColor: FlutterFlowTheme.of(context).primaryText,
cursorColor: Colors.white,
),
),
),
@@ -525,7 +525,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
Text(
// 'TH689564522DL',
'${widget.device['person']?['name'] ?? '未命名'.tr}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -587,7 +587,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
decoration: BoxDecoration(),
child: Text(
'设备ID'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -597,7 +597,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
),
Text(
'${widget.device['code'] ?? '未知数据'.tr}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -618,7 +618,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
decoration: BoxDecoration(),
child: Text(
'更新时间'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -628,7 +628,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
),
Text(
'${widget.device['status']['updateTime'] != null ? MyUtils.timestampToDateString(widget.device['status']['updateTime']) : '未知时间'.tr}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -654,9 +654,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
decoration: BoxDecoration(),
child: Text(
'已分享'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -666,8 +664,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
),
Text(
'${widget.device['shareNum']}' + "".tr,
style:
FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -738,9 +735,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
decoration: BoxDecoration(),
child: Text(
'设备来源'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -752,8 +747,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
(widget.device['source']?.toString().isEmpty ?? true)
? '未知数据'.tr
: widget.device['source'].toString(),
style:
FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -790,7 +784,7 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
decoration: BoxDecoration(),
child: Text(
'体征检测设备.设备状态'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -1102,13 +1096,10 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
children: [
Text(
"体征检测设备.人员资料".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
@@ -1146,13 +1137,10 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
children: [
Text(
"体征检测设备.实时体征".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
@@ -1198,13 +1186,10 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
children: [
Text(
"体征检测设备.消息回看".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
@@ -1248,13 +1233,10 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
children: [
Text(
"体征检测设备.健康报告".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.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:flutter_svg/flutter_svg.dart';
@@ -61,7 +60,7 @@ class DeviceStatusInfoWidget extends StatelessWidget {
),
Text(
value,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
@@ -74,7 +73,7 @@ class DeviceStatusInfoWidget extends StatelessWidget {
),
Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,

View File

@@ -45,7 +45,7 @@ class _ReviewMessageWidgetWidgetState extends State<ReviewMessageWidgetWidget> {
child: Text(
// '实时监测结果通知'.tr,
"${messageInfo['data']!['title']}",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -102,7 +102,7 @@ class _ReviewMessageWidgetWidgetState extends State<ReviewMessageWidgetWidget> {
overflow: TextOverflow.ellipsis,
maxLines: 1,
"${label}",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -124,7 +124,7 @@ class _ReviewMessageWidgetWidgetState extends State<ReviewMessageWidgetWidget> {
overflow: TextOverflow.ellipsis,
maxLines: 1,
"${value}",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,

View File

@@ -61,7 +61,7 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
/// 居中标题
Text(
'设备详情.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0.rpx,
@@ -132,9 +132,7 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
(widget.device['code'] ?? '').toString().isNotEmpty
? widget.device['code'].toString()
: '未知数据'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
@@ -173,14 +171,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.设备名称'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -193,14 +188,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.MAC'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -213,14 +205,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.型号'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -233,14 +222,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.版本'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -253,14 +239,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.网络状态'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -273,14 +256,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.故障状态'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -293,14 +273,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.更新状态'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -313,14 +290,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'设备详情.更新时间'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),
@@ -394,14 +368,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'${widget.device['person']?['name'] ?? '未命名'.tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),
@@ -414,14 +385,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'${widget.device['mac'] ?? '-'.tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),
@@ -434,14 +402,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'-',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),
@@ -454,14 +419,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'-',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),
@@ -474,14 +436,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'${widget.device['status']['status'] == 1 ? '在线'.tr : '离线'.tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),
@@ -494,14 +453,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'${widget.device['status']['failure'] == 1 ? '有故障'.tr : '无故障'.tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),
@@ -514,14 +470,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'${widget.device['status']['upgrade'] == 1 ? '有更新'.tr : '无更新'.tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),
@@ -534,14 +487,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
AlignmentDirectional(-1.rpx, 0.rpx),
child: Text(
'${widget.device['status']?['updateTime'] == null ? '-'.tr : MyUtils.timestampToDateString(widget.device['status']?['updateTime'])}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.rpx,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
),

View File

@@ -170,7 +170,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
children: [
RichText(
text: TextSpan(
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,
@@ -655,10 +655,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
children: [
Text(
'实时体征.姓名'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -668,10 +665,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
),
Text(
'实时体征.年龄'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -688,10 +682,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
children: [
Text(
'${device['person']?['name'] ?? '未命名'.tr}',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -701,10 +692,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
),
Text(
'${MyUtils.getAgeByDate(MyUtils.formatBirthdayTime(device['person']?['birthday'])) ?? '未知数据'.tr}',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -739,10 +727,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
children: [
Text(
'实时体征.设备ID'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -752,10 +737,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
),
Text(
'实时体征.体重'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -774,10 +756,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
Text(
'${device['code'] ?? '未知数据'.tr}',
// "D11250300003",
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -790,10 +769,7 @@ class _InstantBodyPageState extends State<InstantBodyPage>
),
Text(
'${device['person']?['weight'] ?? '未知数据'.tr}kg',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -915,14 +891,11 @@ class _InstantBodyPageState extends State<InstantBodyPage>
bodyMotion >= maxBodyMotion
? '请保持静止'.tr
: "",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc9,
color: themeController.currentColor.sc9,
),
),
),
@@ -975,13 +948,10 @@ class _InstantBodyPageState extends State<InstantBodyPage>
Expanded(
child: Text(
'实时体征.提示'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
),
),

View File

@@ -118,9 +118,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
children: [
Text(
'实时体征.姓名'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -130,9 +128,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
),
Text(
'实时体征.年龄'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -148,9 +144,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
children: [
Text(
'${widget.data['person']?['name'] ?? '未命名'.tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -160,9 +154,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
),
Text(
'${MyUtils.getAgeByDate(MyUtils.formatBirthdayTime(widget.data['person']?['birthday'])) ?? '未知数据'.tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -194,9 +186,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
children: [
Text(
'实时体征.设备ID'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -206,9 +196,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
),
Text(
'实时体征.体重'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -226,10 +214,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
Text(
'${widget.data['code'] ?? '未知数据'.tr}',
// "D11250300003",
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -241,10 +226,7 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
),
Text(
'${widget.data['person']?['weight'] ?? '未知数据'.tr}kg',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,

View File

@@ -117,7 +117,7 @@ class _MobileScannerTestPageState extends State<MobileScannerTestPage>
children: [
Text(
'扫一扫.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,

View File

@@ -859,9 +859,7 @@ class _AfterCalibrationPersonPageState
0) {
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -878,9 +876,7 @@ class _AfterCalibrationPersonPageState
.statusContext.value = "";
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -895,9 +891,7 @@ class _AfterCalibrationPersonPageState
2) {
return Text(
'重新校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',

View File

@@ -82,7 +82,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
/// 居中标题
Text(
'人员资料.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -135,9 +135,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'下一步'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
@@ -193,23 +191,17 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
decoration: InputDecoration(
fillColor: Colors.transparent,
isDense: true,
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
hintText: '人员资料.名字输入提示'.tr,
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
@@ -229,8 +221,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -238,8 +228,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -247,13 +235,10 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
),
filled: true,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color:
themeController.currentColor.sc3,
color: themeController.currentColor.sc3,
),
textAlign: TextAlign.center,
cursorColor:
@@ -309,20 +294,15 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
),
Text(
''.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: isMaleGreyed
? themeController
.currentColor
.sc4
.currentColor.sc4
: themeController
.currentColor
.sc3,
.currentColor.sc3,
),
),
].divide(
@@ -363,18 +343,13 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
),
Text(
''.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: isFemaleGreyed
? themeController
.currentColor
.sc4
.currentColor.sc4
: themeController
.currentColor
.sc3,
.currentColor.sc3,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
@@ -431,18 +406,13 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
personController.dateTime!)
: '人员资料.生日输入提示'.tr,
textAlign: TextAlign.right,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: personController.dateTime !=
null
? themeController
.currentColor.sc3
: themeController
.currentColor.sc4,
fontSize: AppConstants()
.normal_text_fontSize,
color: personController.dateTime != null
? themeController.currentColor.sc3
: themeController.currentColor.sc4,
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0,
),
),
@@ -483,12 +453,9 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
},
autofocus: false,
obscureText: false,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color:
Colors.transparent, // 隐藏输入文字
color: Colors.transparent, // 隐藏输入文字
letterSpacing: 0.0,
),
textAlign: TextAlign.center,
@@ -498,10 +465,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
fillColor: Colors.transparent,
isDense: true,
hintText: '身高输入提示'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc4,
@@ -527,9 +491,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -538,9 +499,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -558,10 +516,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
: Text(
'${height}cm',
textAlign: TextAlign.center,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -609,12 +564,9 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
},
autofocus: false,
obscureText: false,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color:
Colors.transparent, // 隐藏输入文字
color: Colors.transparent, // 隐藏输入文字
letterSpacing: 0.0,
),
textAlign: TextAlign.center,
@@ -624,10 +576,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
fillColor: Colors.transparent,
isDense: true,
hintText: '人员资料.体重输入提示'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc4,
@@ -653,9 +602,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -664,9 +610,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -684,10 +627,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
: Text(
'${weight}kg',
textAlign: TextAlign.center,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -711,9 +651,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'人员资料.疾病标题'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF3F4F5),
fontSize: 30.rpx,
@@ -797,9 +735,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
Expanded(
child: Text(
'人员资料.提示'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: 26.rpx,
@@ -850,7 +786,7 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
children: [
Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFC2CED7),
fontSize: 30.rpx,

View File

@@ -99,8 +99,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
children: [
Text(
'wifi页.标题'.tr,
style:
FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -182,9 +181,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'下一步'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
@@ -322,14 +319,12 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
children: [
Text(
'可用WLAN'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
],
@@ -396,10 +391,8 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
InputDecoration(
isDense:
true,
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle:
TextStyle(
fontFamily:
'Inter',
fontSize:
@@ -410,7 +403,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
hintText:
'蓝牙绑定.输入wifi密码'
.tr,
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
hintStyle: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -450,8 +443,6 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -463,8 +454,6 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -474,9 +463,9 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
),
filled:
false,
fillColor: FlutterFlowTheme.of(
context)
.secondaryBackground,
// fillColor: FlutterFlowTheme.of(
// context)
// .secondaryBackground,
suffixIcon:
InkWell(
onTap:
@@ -500,7 +489,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
),
),
),
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -631,17 +620,12 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
children: [
Text(
wifiItem['ssid'] ?? '',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color:
themeController
.currentColor
.sc3,
color: themeController
.currentColor.sc3,
),
),
if (blueteethBindController
@@ -768,9 +752,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
),
Text(
'刷新'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,

View File

@@ -64,7 +64,7 @@ class _EPageState extends State<BindDeviceSuccess> {
/// 居中标题
Text(
'绑定成功.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -164,9 +164,7 @@ class _EPageState extends State<BindDeviceSuccess> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'绑定成功.绑定成功'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
@@ -185,9 +183,7 @@ class _EPageState extends State<BindDeviceSuccess> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'绑定成功.分享标题'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -206,9 +202,7 @@ class _EPageState extends State<BindDeviceSuccess> {
alignment: AlignmentDirectional(-1, 0),
child: Text(
'绑定成功.分享内容'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -276,9 +270,7 @@ class _EPageState extends State<BindDeviceSuccess> {
),
Text(
'绑定成功.立即分享'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
@@ -347,9 +339,7 @@ class _EPageState extends State<BindDeviceSuccess> {
children: [
Text(
'绑定成功.返回'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()

View File

@@ -294,7 +294,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
children: [
Text(
'蓝牙绑定.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -333,9 +333,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
0, 30.rpx, 0, 30.rpx),
child: Text(
'蓝牙绑定.扫描'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFE8EEF3),
fontSize: 26.rpx,
@@ -360,11 +358,9 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
children: [
Text(
'最小信号强度'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFEEF2F5),
color: stringToColor("#003058"),
fontSize: 26.rpx,
letterSpacing: 0.0,
),
@@ -373,8 +369,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
child: Obx(() {
return Slider(
activeColor: Color(0xFF1FCC9B),
inactiveColor:
FlutterFlowTheme.of(context).alternate,
inactiveColor: Colors.white,
min: -100,
max: 50,
value: blueteethBindController.model.singal!,
@@ -392,9 +387,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
Obx(() {
return Text(
'${blueteethBindController.model.singal!.toInt()}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFE4E8EB),
fontSize: 26.rpx,
@@ -443,8 +436,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
width: 100.rpx,
height: 80.rpx,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
color: Colors.white,
),
child: Align(
alignment: AlignmentDirectional(-1, 0),
@@ -459,19 +451,13 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '蓝牙绑定.搜索提示'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -494,9 +480,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
color: Colors.white,
width: 1.rpx,
),
borderRadius:
@@ -505,9 +489,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
color: Colors.white,
width: 1.rpx,
),
borderRadius:
@@ -517,9 +499,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
fillColor: themeController
.currentColor.sc22,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -590,14 +570,11 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
child: Text(
'搜索'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color:
stringToColor("#333333"), //固定
color: stringToColor("#333333"), //固定
),
),
),
@@ -623,9 +600,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
// "${blueteethBindController.model.betDevicelist!.length}",
'匹配出的外围设备'.tr +
"${blueteethBindController.model.betDevicelist!.length}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,

View File

@@ -125,10 +125,10 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
},
side: BorderSide(
width: 1.5,
color: FlutterFlowTheme.of(context).secondaryText,
color: Colors.white,
),
activeColor: stringToColor("#16C89F"),
checkColor: FlutterFlowTheme.of(context).info,
checkColor: Colors.white,
),
);
}),
@@ -161,9 +161,7 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
alignment: AlignmentDirectional(-1, 0),
child: Text(
"${item['k']}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -176,9 +174,7 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
),
Text(
"${item['v']}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,

View File

@@ -1,4 +1,3 @@
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
import 'package:flutter/material.dart';
import 'package:flutterflow_ui/flutterflow_ui.dart';
import 'package:vbvs_app/common/util/FitTool.dart';
@@ -20,7 +19,6 @@ class DoubleBlueteethDeviceCompoentWidget extends StatefulWidget {
_DoubleBlueteethDeviceCompoentWidgetState();
}
class _DoubleBlueteethDeviceCompoentWidgetState
extends State<DoubleBlueteethDeviceCompoentWidget> {
@override
@@ -57,7 +55,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
decoration: BoxDecoration(),
child: Text(
'AITH-V3',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 30.rpx,
@@ -73,7 +71,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
children: [
Text(
'信号强度:-36dBm',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -82,7 +80,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
),
Text(
'SN12',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF5F9FD),
fontSize: 26.rpx,
@@ -97,7 +95,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
decoration: BoxDecoration(),
child: Text(
'蓝牙地址48:CA:43:B1:B3:B2',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -110,7 +108,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
decoration: BoxDecoration(),
child: Text(
'mac48CA43B1B3B0',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -126,7 +124,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
children: [
Text(
'网络:在线',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -138,7 +136,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
children: [
Text(
'传感器:',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -147,7 +145,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
),
Text(
'可绑定',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFF1AD2B5),
fontSize: 26.rpx,
@@ -164,7 +162,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
decoration: BoxDecoration(),
child: Text(
'版本02409.0301',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -174,14 +172,14 @@ class _DoubleBlueteethDeviceCompoentWidgetState
),
Divider(
thickness: 2.rpx,
color: FlutterFlowTheme.of(context).alternate,
color: Colors.white,
),
Container(
width: double.infinity,
decoration: BoxDecoration(),
child: Text(
'AITH-V3',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 30.rpx,
@@ -197,7 +195,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
children: [
Text(
'信号强度:-36dBm',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -206,7 +204,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
),
Text(
'SN12',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF5F9FD),
fontSize: 26.rpx,
@@ -221,7 +219,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
decoration: BoxDecoration(),
child: Text(
'蓝牙地址48:CA:43:B1:B3:B2',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -234,7 +232,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
decoration: BoxDecoration(),
child: Text(
'mac48CA43B1B3B0',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -250,7 +248,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
children: [
Text(
'网络:在线',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -262,7 +260,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
children: [
Text(
'传感器:',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -271,7 +269,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
),
Text(
'可绑定',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFF1AD2B5),
fontSize: 26.rpx,
@@ -288,7 +286,7 @@ class _DoubleBlueteethDeviceCompoentWidgetState
decoration: BoxDecoration(),
child: Text(
'版本02409.0301',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -300,6 +298,5 @@ class _DoubleBlueteethDeviceCompoentWidgetState
),
),
);
}
}

View File

@@ -0,0 +1,575 @@
import 'dart:async';
import 'package:ef/ef.dart';
import 'package:flutter/material.dart';
import 'package:flutterflow_ui/flutterflow_ui.dart';
import 'package:vbvs_app/common/color/ServiceConstant.dart';
import 'package:vbvs_app/common/color/appConstants.dart';
import 'package:vbvs_app/common/util/FitTool.dart';
import 'package:vbvs_app/common/util/MyUtils.dart';
import 'package:vbvs_app/common/util/requestWithLog.dart';
import 'package:vbvs_app/component/base/GradientSwitch.dart';
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
import 'package:vbvs_app/controller/message/common_message_setting_controller.dart';
import 'package:vbvs_app/controller/message/message_setting_controller.dart';
import 'package:vbvs_app/controller/theme_controller/ThemeController.dart';
class MessageSettingPage extends StatefulWidget {
var data;
MessageSettingPage({super.key, required this.data});
@override
State<MessageSettingPage> createState() => _MessageSettingPageState();
}
class _MessageSettingPageState extends State<MessageSettingPage> {
final ThemeController themeController = Get.find();
MessageSettingController messageSettingController = Get.find();
CommonMessageSettingController commonMessageSettingController = Get.find();
@override
void initState() {
super.initState();
_fetchCommonMessageSetting();
_fetchDeviceMessageSetting();
}
Future<void> _fetchCommonMessageSetting() async {
String serviceAddress = ServiceConstant.service_address;
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.user_setting;
String type = "user_message_setting";
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}?type=$type";
requestWithLog(
logTitle: "查询用户消息配置",
method: MyHttpMethod.get,
queryUrl: queryUrl,
onSuccess: (res) {
if (res.data == null || res.data.isEmpty) {
var data = {
"type": type,
"setting": 1,
"appSetting": 1,
"serviceSetting": 1,
"tipSetting": 1,
"deviceUpgradeSetting": 1,
"deviceIssueSetting": 1,
};
requestWithLog(
logTitle: "更新用户消息配置",
method: MyHttpMethod.put,
queryUrl: queryUrl,
data: data,
onSuccess: (res) {
requestWithLog(
logTitle: "查询用户消息配置",
method: MyHttpMethod.get,
queryUrl: queryUrl,
onSuccess: (res) {
if (res.data != null && res.data.isNotEmpty) {
var datalist = res.data;
commonMessageSettingController.model.setting =
datalist['setting'];
commonMessageSettingController.model.appSetting =
datalist['appSetting'];
commonMessageSettingController.model.serviceSetting =
datalist['serviceSetting'];
commonMessageSettingController.model.tipSetting =
datalist['tipSetting'];
commonMessageSettingController.model.deviceUpgradeSetting =
datalist['deviceUpgradeSetting'];
commonMessageSettingController.model.deviceIssueSetting =
datalist['deviceIssueSetting'];
commonMessageSettingController.updateAll();
}
},
);
//
},
);
} else {
var datalist = res.data;
commonMessageSettingController.model.setting = datalist['setting'];
commonMessageSettingController.model.appSetting =
datalist['appSetting'];
commonMessageSettingController.model.serviceSetting =
datalist['serviceSetting'];
commonMessageSettingController.model.tipSetting =
datalist['tipSetting'];
commonMessageSettingController.model.deviceUpgradeSetting =
datalist['deviceUpgradeSetting'];
commonMessageSettingController.model.deviceIssueSetting =
datalist['deviceIssueSetting'];
commonMessageSettingController.updateAll();
}
},
onFailure: (res) {
print(res);
},
);
}
Future<void> _fetchDeviceMessageSetting() async {
String serviceAddress = ServiceConstant.service_address;
String serviceName = ServiceConstant.server_service;
String serviceApi = ServiceConstant.user_setting;
String mac = widget.data['mac'];
String type = "user_device_message_setting_$mac";
String queryUrl = "${serviceAddress}${serviceName}${serviceApi}?type=$type";
requestWithLog(
logTitle: "查询用户消息配置",
method: MyHttpMethod.get,
queryUrl: queryUrl,
onSuccess: (res) {
if (res.data == null || res.data.isEmpty) {
var data = {
"type": type,
"setting": 1,
"appSetting": 1,
"serviceSetting": 1,
};
requestWithLog(
logTitle: "更新用户消息配置",
method: MyHttpMethod.put,
queryUrl: queryUrl,
data: data,
onSuccess: (res) {
requestWithLog(
logTitle: "查询用户消息配置",
method: MyHttpMethod.get,
queryUrl: queryUrl,
onSuccess: (res) {
if (res.data != null && res.data.isNotEmpty) {
var datalist = res.data;
messageSettingController.model.setting =
datalist['setting'];
messageSettingController.model.appSetting =
datalist['appSetting'];
messageSettingController.model.serviceSetting =
datalist['serviceSetting'];
messageSettingController.updateAll();
}
},
);
//
},
);
} else {
var datalist = res.data;
messageSettingController.model.setting = datalist['setting'];
messageSettingController.model.appSetting = datalist['appSetting'];
messageSettingController.model.serviceSetting =
datalist['serviceSetting'];
messageSettingController.updateAll();
}
},
onFailure: (res) {
print(res);
},
);
}
@override
void dispose() {
super.dispose();
}
@override
Widget build(BuildContext context) {
return LayoutBuilder(
builder: (context, bodysize) => GestureDetector(
onTap: () => FocusScope.of(context).unfocus(),
child: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/img/bgNoImg.png'),
fit: BoxFit.fill,
),
),
child: Scaffold(
backgroundColor: Colors.transparent,
appBar: AppBar(
backgroundColor: themeController.currentColor.sc17,
automaticallyImplyLeading: false,
iconTheme: IconThemeData(
color: themeController.currentColor.sc3,
),
titleSpacing: 0,
title: Container(
width: double.infinity,
height: 180.rpx,
child: Stack(
alignment: Alignment.center,
children: [
/// 居中标题
Text(
'消息设置'.tr,
style: TextStyle(
fontFamily: 'ReadexPro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: 30.rpx,
),
),
Positioned(
left: 0,
child: returnIconButtomAddCallback(() {}),
),
],
),
),
actions: [],
centerTitle: false,
),
body: GestureDetector(
child: SafeArea(
top: true,
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(0.rpx, 0, 0.rpx, 0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Padding(
padding:
EdgeInsetsDirectional.fromSTEB(0, 30.rpx, 0, 0),
child: Container(
width: double.infinity,
constraints: BoxConstraints(
minHeight: 90.rpx,
),
decoration: BoxDecoration(
color: themeController.currentColor.sc5),
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
30.rpx, 15.rpx, 30.rpx, 15.rpx),
child: Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
"消息提醒设置".tr,
style: TextStyle(
color: themeController.currentColor.sc3,
fontSize:
AppConstants().title_text_fontSize),
),
),
Obx(() {
return GradientSwitch(
value: commonMessageSettingController
.model.setting ==
1
? (messageSettingController
.model.setting ==
1
? true
: false)
: false,
onChanged: (val) {
if (commonMessageSettingController
.model.setting ==
0) {
TopSlideNotification.show(context,
text: "请先在设置里的消息通知打开全部消息配置".tr,
textColor: themeController
.currentColor.sc9);
return;
}
String serviceAddress =
ServiceConstant.service_address;
String serviceName =
ServiceConstant.server_service;
String serviceApi =
ServiceConstant.user_setting;
String mac = widget.data['mac'];
String type =
"user_device_message_setting_$mac";
String queryUrl =
"${serviceAddress}${serviceName}${serviceApi}";
var data = {
"type": type,
"setting": val == true ? 1 : 0,
"appSetting": messageSettingController
.model.appSetting,
"serviceSetting":
messageSettingController
.model.serviceSetting,
};
requestWithLog(
logTitle: "更新消息推送状态",
method: MyHttpMethod.put,
queryUrl: queryUrl,
data: data,
onSuccess: (res) {
_fetchDeviceMessageSetting();
messageSettingController
.updateAll();
});
},
activeGradient: LinearGradient(
colors: [
themeController.currentColor.sc1,
themeController.currentColor.sc2
],
),
activeThumbColor: Colors.white,
inactiveThumbColor:
stringToColor("#A2A4A9"),
inactiveColor: stringToColor("#161B28"),
);
}),
],
),
),
),
),
Padding(
padding: EdgeInsetsDirectional.fromSTEB(
30.rpx, 21.rpx, 30.rpx, 0),
child: Container(
decoration: BoxDecoration(
color: themeController.currentColor.sc5,
borderRadius: BorderRadius.circular(
AppConstants().normal_container_radius),
),
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(
30.rpx, 40.rpx, 30.rpx, 54.rpx),
child: Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
"APP消息".tr,
style: TextStyle(
color: themeController
.currentColor.sc3,
fontSize: AppConstants()
.title_text_fontSize),
),
),
Obx(() {
return GradientSwitch(
value: commonMessageSettingController
.model.setting ==
1
? (messageSettingController
.model.setting ==
1
? (messageSettingController
.model
.appSetting ==
1
? true
: false)
: false)
: false,
onChanged: (val) {
if (commonMessageSettingController
.model.setting ==
0) {
TopSlideNotification.show(context,
text:
"请先在设置里的消息通知打开全部消息配置".tr,
textColor: themeController
.currentColor.sc9);
return;
}
if (messageSettingController
.model.setting ==
0) {
TopSlideNotification.show(context,
text: "请先打开消息提醒设置".tr,
textColor: themeController
.currentColor.sc9);
return;
}
String serviceAddress =
ServiceConstant.service_address;
String serviceName =
ServiceConstant.server_service;
String serviceApi =
ServiceConstant.user_setting;
String mac = widget.data['mac'];
String type =
"user_device_message_setting_$mac";
String queryUrl =
"${serviceAddress}${serviceName}${serviceApi}";
var data = {
"type": type,
"setting":
messageSettingController
.model.setting,
"appSetting": val == true ? 1 : 0,
"serviceSetting":
messageSettingController
.model.serviceSetting,
};
requestWithLog(
logTitle: "更新消息推送状态",
method: MyHttpMethod.put,
queryUrl: queryUrl,
data: data,
onSuccess: (res) {
_fetchDeviceMessageSetting();
messageSettingController
.updateAll();
});
},
activeGradient: LinearGradient(
colors: [
themeController.currentColor.sc1,
themeController.currentColor.sc2
],
),
activeThumbColor: Colors.white,
inactiveThumbColor:
stringToColor("#A2A4A9"),
inactiveColor:
stringToColor("#161B28"),
);
}),
],
),
Text(
"APP消息介绍".tr,
style: TextStyle(
color: themeController.currentColor.sc4,
fontSize: AppConstants()
.normal_text_fontSize),
),
Row(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment:
MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
"服务号消息".tr,
style: TextStyle(
color: themeController
.currentColor.sc3,
fontSize: AppConstants()
.title_text_fontSize),
),
),
Obx(() {
return GradientSwitch(
value: commonMessageSettingController
.model.setting ==
1
? (messageSettingController
.model.setting ==
1
? (messageSettingController
.model
.serviceSetting ==
1
? true
: false)
: false)
: false,
onChanged: (val) {
if (commonMessageSettingController
.model.setting ==
0) {
TopSlideNotification.show(context,
text:
"请先在设置里的消息通知打开全部消息配置".tr,
textColor: themeController
.currentColor.sc9);
return;
}
if (messageSettingController
.model.setting ==
0) {
TopSlideNotification.show(context,
text: "请先打开消息提醒设置".tr,
textColor: themeController
.currentColor.sc9);
return;
}
String serviceAddress =
ServiceConstant.service_address;
String serviceName =
ServiceConstant.server_service;
String serviceApi =
ServiceConstant.user_setting;
String mac = widget.data['mac'];
String type =
"user_device_message_setting_$mac";
String queryUrl =
"${serviceAddress}${serviceName}${serviceApi}";
var data = {
"type": type,
"setting":
messageSettingController
.model.setting,
"appSetting":
messageSettingController
.model.appSetting,
"serviceSetting":
val == true ? 1 : 0,
};
requestWithLog(
logTitle: "更新消息推送状态",
method: MyHttpMethod.put,
queryUrl: queryUrl,
data: data,
onSuccess: (res) {
_fetchDeviceMessageSetting();
messageSettingController
.updateAll();
});
},
activeGradient: LinearGradient(
colors: [
themeController.currentColor.sc1,
themeController.currentColor.sc2
],
),
activeThumbColor: Colors.white,
inactiveThumbColor:
stringToColor("#A2A4A9"),
inactiveColor:
stringToColor("#161B28"),
);
}),
],
),
Text(
"服务号消息介绍".tr,
style: TextStyle(
color: themeController.currentColor.sc4,
fontSize: AppConstants()
.normal_text_fontSize),
),
].divide(SizedBox(
height: 49.rpx,
)),
),
),
),
),
),
],
),
),
),
),
),
),
),
);
}
}

View File

@@ -110,7 +110,6 @@ class _SingleBlueteethDeviceCompoentWidgetState
}
},
onCancel: () {
print('用户点击了取消');
blueteethBindController.currentDeviceMac.value = "";
blueteethBindController.updateAll();
@@ -140,7 +139,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
children: [
Text(
device.name ?? '蓝牙绑定.默认设备名称'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 30.rpx,
@@ -169,7 +168,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
children: [
Text(
"蓝牙绑定.信号强度".tr + '${device.rssi ?? '-'}dBm',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -179,7 +178,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
SizedBox(width: 40.rpx),
Text(
"蓝牙绑定.SN".tr + '${device.sn ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF5F9FD),
fontSize: 26.rpx,
@@ -190,7 +189,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
"蓝牙绑定.蓝牙地址".tr + '${device.deviceId ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -199,7 +198,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
"蓝牙绑定.mac".tr + '${device.mac ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -211,7 +210,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
Text(
"蓝牙绑定.网络".tr +
'${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -223,7 +222,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
children: [
Text(
"蓝牙绑定.传感器".tr + "",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -232,7 +231,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: device.bind == false
? const Color(0xFF1AD2B5)
@@ -247,7 +246,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
"版本".tr + '${device.version ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -292,7 +291,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
return;
} else {}
}
TopSlideNotification.show(context,text: "双人版绑定修复中");
TopSlideNotification.show(context, text: "双人版绑定修复中");
print('选中了设备索引:$selectedIndex');
//配置wifi
},
@@ -354,7 +353,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
children: [
Text(
device.name ?? '蓝牙绑定.默认设备名称'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 30.rpx,
@@ -382,7 +381,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
children: [
Text(
"蓝牙绑定.信号强度".tr + '${device.rssi ?? '-'}dBm',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -392,7 +391,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
SizedBox(width: 40.rpx),
Text(
"蓝牙绑定.SN".tr + '${device.sn ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF5F9FD),
fontSize: 26.rpx,
@@ -403,7 +402,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
"蓝牙绑定.蓝牙地址".tr + '${device.deviceId ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -412,7 +411,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
"蓝牙绑定.mac".tr + '${device.mac ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -424,7 +423,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
Text(
"蓝牙绑定.网络".tr +
'${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -436,7 +435,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
children: [
Text(
"蓝牙绑定.传感器".tr + "",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -445,7 +444,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: device.bind == false
? const Color(0xFF1AD2B5)
@@ -460,7 +459,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
),
Text(
"版本".tr + '${device.version ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,

View File

@@ -53,10 +53,11 @@ void showBindDoubleDialog(
Align(
alignment: AlignmentDirectional(0, 0),
child: Padding(
padding: EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
padding:
EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
child: Text(
'蓝牙绑定.双人版绑定标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -114,16 +115,20 @@ void showBindDoubleDialog(
// 确定按钮
Padding(
padding: EdgeInsetsDirectional.fromSTEB(60.rpx, 100.rpx, 60.rpx, 0),
padding: EdgeInsetsDirectional.fromSTEB(
60.rpx, 100.rpx, 60.rpx, 0),
child: _buildActionButton(
context,
text: '蓝牙绑定.确定'.tr,
onTap: () {
Get.back();
int selectedIndex = blueteethBindController.model.deviceIndex0!
int selectedIndex =
blueteethBindController.model.deviceIndex0!
? 0
: (blueteethBindController.model.deviceIndex1! ? 1 : 2);
: (blueteethBindController.model.deviceIndex1!
? 1
: 2);
onConfirm(selectedIndex);
},
@@ -131,7 +136,8 @@ void showBindDoubleDialog(
),
// 取消按钮
Padding(
padding: EdgeInsetsDirectional.fromSTEB(60.rpx, 19.rpx, 60.rpx, 60.rpx),
padding: EdgeInsetsDirectional.fromSTEB(
60.rpx, 19.rpx, 60.rpx, 60.rpx),
child: _buildActionButton(
context,
text: '蓝牙绑定.取消'.tr,
@@ -150,7 +156,6 @@ void showBindDoubleDialog(
);
}
Future<void> showHaveBindDialog(BuildContext context) async {
ThemeController themeController = Get.find();
@@ -182,7 +187,7 @@ Future<void> showHaveBindDialog(BuildContext context) async {
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,
@@ -244,9 +249,7 @@ Future<void> showHaveBindDialog(BuildContext context) async {
children: [
Text(
'蓝牙绑定.知道了'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
@@ -299,7 +302,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,
@@ -382,7 +385,7 @@ Widget _buildCheckboxRow(
children: [
TextSpan(
text: mainText,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: AppConstants().normal_text_fontSize,
@@ -453,7 +456,7 @@ Widget _buildActionButton(
children: [
Text(
text,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
@@ -534,7 +537,7 @@ void showConfirmDialog(
33.rpx, 60.rpx, 33.rpx, 33.rpx),
child: Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -577,9 +580,7 @@ void showConfirmDialog(
children: [
Text(
"蓝牙绑定.否".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
@@ -615,9 +616,7 @@ void showConfirmDialog(
children: [
Text(
"蓝牙绑定.是".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
@@ -713,7 +712,7 @@ void showSingleConfirmDialog(
33.rpx, 60.rpx, 33.rpx, 33.rpx),
child: Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -757,13 +756,10 @@ void showSingleConfirmDialog(
children: [
Text(
confirmText,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
@@ -848,7 +844,7 @@ void showWifiDialog(
EdgeInsetsDirectional.fromSTEB(0.rpx, 40.rpx, 0, 0),
child: Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -895,13 +891,10 @@ void showWifiDialog(
children: [
Text(
"蓝牙绑定.连接".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize:
AppConstants().normal_text_fontSize,
fontSize: AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),
@@ -984,9 +977,7 @@ Future<void> showTipDialog(
children: [
Text(
'蓝牙绑定.知道了'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
@@ -1073,9 +1064,7 @@ Future<void> showUnBindTipDialog(
children: [
Text(
'继续'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,
@@ -1119,9 +1108,7 @@ Future<void> showUnBindTipDialog(
children: [
Text(
'下次再说'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants().normal_text_fontSize,

View File

@@ -768,9 +768,7 @@ class _CalibrationPageState extends State<CalibrationPage> {
0) {
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -787,9 +785,7 @@ class _CalibrationPageState extends State<CalibrationPage> {
.statusContext.value = "";
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -804,9 +800,7 @@ class _CalibrationPageState extends State<CalibrationPage> {
2) {
return Text(
'重新校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',

View File

@@ -875,15 +875,12 @@ class _CalibrationPageState extends State<CalibrationPage> {
children: [
Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
//todo 颜色
color:
themeController.currentColor.sc3,
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0.0,
),
),

View File

@@ -770,9 +770,7 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
0) {
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -789,9 +787,7 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
.statusContext.value = "";
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -806,9 +802,7 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
2) {
return Text(
'重新校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -1058,7 +1052,6 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
);
},
onFailure: (res) {},
);
}
}

View File

@@ -69,7 +69,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
children: [
Text(
'已分享'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -133,8 +133,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
width: 100.rpx,
height: 80.rpx,
decoration: BoxDecoration(
color: FlutterFlowTheme.of(context)
.secondaryBackground,
color: Colors.white,
),
child: Align(
alignment: AlignmentDirectional(-1, 0),
@@ -147,19 +146,13 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '输入关键字'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -183,8 +176,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
Colors.white,
width: 1.rpx,
),
borderRadius:
@@ -194,8 +186,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
Colors.white,
width: 1.rpx,
),
borderRadius:
@@ -205,9 +196,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
fillColor: themeController
.currentColor.sc22,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -271,14 +260,11 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
.withOpacity(0.08), // 可选点击反馈色
child: Text(
'搜索'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color:
stringToColor("#333333"), //固定
color: stringToColor("#333333"), //固定
),
),
),
@@ -369,12 +355,11 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
},
side: BorderSide(
width: 1.5,
color: FlutterFlowTheme.of(context)
.secondaryText,
color: Colors.white,
),
activeColor: stringToColor("#16C89F"),
checkColor:
FlutterFlowTheme.of(context).info,
// checkColor:
// FlutterFlowTheme.of(context).info,
),
)),
Text(

View File

@@ -62,7 +62,7 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
children: [
Text(
'设备分享'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -94,9 +94,7 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
width: double.infinity,
child: Text(
'要分享的设备'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -132,14 +130,11 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
Text(
'主设备'.tr +
"${device['person']?['name'] == null ? '未命名'.tr : device['person']['name']}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color:
themeController.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
].divide(SizedBox(width: 20.rpx)),
@@ -202,17 +197,13 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
decoration: InputDecoration(
fillColor: Colors.transparent,
isDense: true,
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
),
hintText: '请输入对方手机号或邮箱'.tr,
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -233,23 +224,19 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
),
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),
),
filled: true,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color: themeController.currentColor.sc3,
@@ -281,9 +268,7 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
TextSpan(
text:
'${deviceShareController.code.value == 1 ? "邀请成功".tr : "邀请失败".tr}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -299,9 +284,7 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
TextSpan(
text:
'${deviceShareController.msg}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -354,9 +337,7 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
children: [
Text(
'发送邀请'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController.currentColor.sc3,
fontFamily: 'Inter',
fontSize: AppConstants()

View File

@@ -111,32 +111,25 @@ class _EPageState extends State<DeviceTypePage> {
children: [
Text(
'绑定引导.说明标题'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
fontWeight:
FontWeight.w500,
color: stringToColor(
"#916d46"),
fontWeight: FontWeight.w500,
color:
stringToColor("#916d46"),
),
),
Text(
'绑定引导.说明正文'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
color: stringToColor(
"#916d46"),
color:
stringToColor("#916d46"),
),
),
].divide(SizedBox(
@@ -226,26 +219,22 @@ class _EPageState extends State<DeviceTypePage> {
side: BorderSide(
width: 1.5,
color:
FlutterFlowTheme.of(context)
.secondaryText,
Colors.white,
),
activeColor:
stringToColor("#16C89F"),
checkColor:
FlutterFlowTheme.of(context)
.info,
// checkColor:
// FlutterFlowTheme.of(context)
// .info,
),
)),
Text(
'绑定引导.不再提示'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
),
].divide(SizedBox(width: 22.rpx)),
@@ -275,9 +264,7 @@ class _EPageState extends State<DeviceTypePage> {
alignment: Alignment.center, // 居中对齐
child: Text(
'确认'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -334,7 +321,7 @@ class _EPageState extends State<DeviceTypePage> {
/// 居中标题
Text(
'设备列表'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -429,7 +416,7 @@ class _EPageState extends State<DeviceTypePage> {
Expanded(
child: Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,

View File

@@ -71,7 +71,7 @@ class _DeviceTypeListPageState extends State<DeviceTypeListPage> {
/// 居中标题
Text(
'设备列表'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -163,9 +163,10 @@ class _DeviceTypeListPageState extends State<DeviceTypeListPage> {
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(child: Text(
Expanded(
child: Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,
@@ -173,7 +174,8 @@ class _DeviceTypeListPageState extends State<DeviceTypeListPage> {
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),),
),
),
ClipRRect(
borderRadius: BorderRadius.circular(8.rpx),
// child: Image.asset(

View File

@@ -158,8 +158,7 @@ class _WifiPageState extends State<WifiPage> {
children: [
Text(
'wifi页.标题'.tr,
style:
FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -235,9 +234,7 @@ class _WifiPageState extends State<WifiPage> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'下一步'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
@@ -375,14 +372,12 @@ class _WifiPageState extends State<WifiPage> {
children: [
Text(
'可用WLAN'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
],
@@ -449,10 +444,8 @@ class _WifiPageState extends State<WifiPage> {
InputDecoration(
isDense:
true,
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle:
TextStyle(
fontFamily:
'Inter',
fontSize:
@@ -463,7 +456,7 @@ class _WifiPageState extends State<WifiPage> {
hintText:
'蓝牙绑定.输入wifi密码'
.tr,
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
hintStyle: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -503,8 +496,6 @@ class _WifiPageState extends State<WifiPage> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -516,8 +507,6 @@ class _WifiPageState extends State<WifiPage> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -527,9 +516,7 @@ class _WifiPageState extends State<WifiPage> {
),
filled:
false,
fillColor: FlutterFlowTheme.of(
context)
.secondaryBackground,
fillColor: Colors.white,
suffixIcon:
InkWell(
onTap:
@@ -553,7 +540,7 @@ class _WifiPageState extends State<WifiPage> {
),
),
),
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -684,17 +671,12 @@ class _WifiPageState extends State<WifiPage> {
children: [
Text(
wifiItem['ssid'] ?? '',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color:
themeController
.currentColor
.sc3,
color: themeController
.currentColor.sc3,
),
),
if (blueteethBindController
@@ -815,9 +797,7 @@ class _WifiPageState extends State<WifiPage> {
),
Text(
'刷新'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -1102,7 +1082,8 @@ class _WifiPageState extends State<WifiPage> {
// text: "4g设备配置wifi提示".tr,
// textColor: themeController.currentColor.sc9,
// );
updateDeviceBindStatus(blueteethBindController.currentDeviceMac!.value);
updateDeviceBindStatus(
blueteethBindController.currentDeviceMac!.value);
WidgetsBinding.instance.addPostFrameCallback((_) {
TopSlideNotification.show(
context,
@@ -1179,8 +1160,8 @@ class _WifiPageState extends State<WifiPage> {
"type": type,
"mac": mac,
"wifi": true,
"celibration":res.data['celibration'],
"person_info":res.data['person_info'],
"celibration": res.data['celibration'],
"person_info": res.data['person_info'],
"time": DateTime.now().millisecondsSinceEpoch,
};
requestWithLog(

View File

@@ -99,8 +99,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
children: [
Text(
'wifi页.标题'.tr,
style:
FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -178,9 +177,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'完成'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
@@ -318,14 +315,12 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
children: [
Text(
'可用WLAN'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
],
@@ -392,10 +387,8 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
InputDecoration(
isDense:
true,
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle:
TextStyle(
fontFamily:
'Inter',
fontSize:
@@ -406,7 +399,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
hintText:
'蓝牙绑定.输入wifi密码'
.tr,
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
hintStyle: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -446,8 +439,6 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -459,8 +450,6 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
OutlineInputBorder(
borderSide:
BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1
.rpx,
),
@@ -470,9 +459,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
),
filled:
false,
fillColor: FlutterFlowTheme.of(
context)
.secondaryBackground,
fillColor: Colors.white,
suffixIcon:
InkWell(
onTap:
@@ -496,7 +483,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
),
),
),
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily:
'Inter',
fontSize: 26
@@ -627,17 +614,12 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
children: [
Text(
wifiItem['ssid'] ?? '',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color:
themeController
.currentColor
.sc3,
color: themeController
.currentColor.sc3,
),
),
if (blueteethBindController
@@ -764,9 +746,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
),
Text(
'刷新'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -1125,8 +1105,8 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
"type": type,
"mac": mac,
"wifi": true,
"celibration":res.data['celibration'],
"person_info":res.data['person_info'],
"celibration": res.data['celibration'],
"person_info": res.data['person_info'],
"time": DateTime.now().millisecondsSinceEpoch,
};
requestWithLog(

View File

@@ -151,15 +151,13 @@ class _EPageState extends State<LoginPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'登录页.欢迎使用太和e护'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
//todo 颜色
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
),
@@ -178,15 +176,13 @@ class _EPageState extends State<LoginPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'登录页.科技睡眠 洞悉万千'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
//todo 颜色
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
),
@@ -205,15 +201,13 @@ class _EPageState extends State<LoginPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'139****0733',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
//todo 颜色
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
),
@@ -260,9 +254,7 @@ class _EPageState extends State<LoginPage> {
child: Text(
textAlign: TextAlign.center,
'登录页.本机号码一键登录/注册'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
//todo 颜色
color: themeController
.currentColor.sc3,
@@ -350,15 +342,12 @@ class _EPageState extends State<LoginPage> {
},
side: BorderSide(
width: 1.5,
color:
FlutterFlowTheme.of(context)
.secondaryText,
color: Colors.white,
),
activeColor:
stringToColor("#FF9F66"),
checkColor:
FlutterFlowTheme.of(context)
.info,
Colors.white,
),
)),
Expanded(
@@ -377,10 +366,7 @@ class _EPageState extends State<LoginPage> {
children: [
TextSpan(
text: '登录页.协议1'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 26.rpx,
@@ -390,10 +376,7 @@ class _EPageState extends State<LoginPage> {
),
TextSpan(
text: '登录页.协议2'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 26.rpx,
@@ -403,10 +386,7 @@ class _EPageState extends State<LoginPage> {
),
TextSpan(
text: '登录页.协议3'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 26.rpx,
@@ -416,10 +396,7 @@ class _EPageState extends State<LoginPage> {
),
TextSpan(
text: '登录页.协议4'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 26.rpx,
@@ -429,10 +406,7 @@ class _EPageState extends State<LoginPage> {
),
TextSpan(
text: '登录页.协议5'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 26.rpx,
@@ -442,10 +416,7 @@ class _EPageState extends State<LoginPage> {
),
TextSpan(
text: '登录页.协议6'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 26.rpx,
@@ -482,9 +453,7 @@ class _EPageState extends State<LoginPage> {
0, 0, 0, 36.rpx),
child: Text(
'登录页.其他登录方式'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,

View File

@@ -153,14 +153,12 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'登录页.欢迎使用太和e护'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
),
@@ -179,14 +177,12 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'登录页.科技睡眠 洞悉万千'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
),
@@ -237,19 +233,13 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '其他手机登录页.输入内容'.tr,
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -281,10 +271,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
errorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(
context)
.error,
color: Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -295,9 +282,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(
context)
.error,
Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -305,14 +290,9 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
8.rpx),
),
filled: false,
fillColor: FlutterFlowTheme
.of(context)
.secondaryBackground,
fillColor: Colors.white,
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -378,20 +358,14 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText:
'其他手机登录页.输入验证码'.tr,
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -423,10 +397,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
errorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(
context)
.error,
color: Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -437,9 +408,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(
context)
.error,
Colors.red,
width: 1.rpx,
),
borderRadius:
@@ -450,10 +419,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
fillColor:
Colors.transparent,
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -667,9 +633,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
children: [
Text(
'其他手机登录页.登录'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -729,15 +693,12 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
},
side: BorderSide(
width: 1.5,
color:
FlutterFlowTheme.of(context)
.secondaryText,
color: Colors.white,
),
activeColor:
stringToColor("#FF9F66"), //固定
checkColor:
FlutterFlowTheme.of(context)
.info,
Colors.white,
),
)),
Expanded(
@@ -756,10 +717,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
children: [
TextSpan(
text: '登录页.协议1'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 20.rpx,
@@ -769,10 +727,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
),
TextSpan(
text: '登录页.协议2'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 20.rpx,
@@ -782,10 +737,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
),
TextSpan(
text: '登录页.协议3'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 20.rpx,
@@ -795,10 +747,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
),
TextSpan(
text: '登录页.协议4'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 20.rpx,
@@ -808,10 +757,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
),
TextSpan(
text: '登录页.协议5'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 20.rpx,
@@ -821,10 +767,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
),
TextSpan(
text: '登录页.协议6'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
fontSize: 20.rpx,
@@ -861,9 +804,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
0, 0, 0, 36.rpx),
child: Text(
'登录页.其他登录方式'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,

View File

@@ -54,7 +54,7 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
child: Text(
// '实时监测结果通知'.tr,
"${messageInfo['data']['title']}",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -144,7 +144,7 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
child: Center(
child: Text(
getMessageStatus(messageInfo['status']),
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -170,7 +170,7 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
overflow: TextOverflow.ellipsis,
maxLines: 1,
label.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -192,7 +192,7 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
overflow: TextOverflow.ellipsis,
maxLines: 1,
"${value}",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,

View File

@@ -32,7 +32,8 @@ class _HomePageState extends State<MainPageBBottomChange>
// Text('报告'),
// RegisterPage(),
// ShareDeviceWidget(),
DeviceListPage(),
// DeviceListPage(),
MhtSleepReportPage(),
// FindPasswordPage(),
// Smys(),
MattressControlPage(),

View File

@@ -40,7 +40,7 @@ class _EPageState extends State<EPage> {
/// 居中标题
Text(
'小e'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,

View File

@@ -55,7 +55,7 @@ class _FollowPageState extends State<FollowPage> {
/// 居中标题
Text(
'关注我们'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,

View File

@@ -57,7 +57,7 @@ class _HelpPageState extends State<HelpPage> {
/// 居中标题
Text(
'操作说明'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,

View File

@@ -292,15 +292,10 @@ class _HomePageState extends State<HomePage> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'首页.登录'.tr,
style:
FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily:
'Inter Tight',
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController
.currentColor
.sc19,
.currentColor.sc19,
letterSpacing: 0.0,
),
),
@@ -470,9 +465,7 @@ class _HomePageState extends State<HomePage> {
children: [
Text(
'首页.已关联体征监测设备'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.title_text_fontSize,
@@ -489,10 +482,7 @@ class _HomePageState extends State<HomePage> {
0, 4.rpx, 0.rpx, 0.rpx),
child: Text(
"${deviceController.bindDeviceNum.value}",
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.title_text_fontSize,
@@ -607,13 +597,9 @@ class _HomePageState extends State<HomePage> {
),
Text(
'首页.扫一扫绑定'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor
.sc19,
.currentColor.sc19,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
@@ -705,14 +691,10 @@ class _HomePageState extends State<HomePage> {
),
Text(
'首页.蓝牙绑定'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
//todo 颜色
color: themeController
.currentColor
.sc19,
.currentColor.sc19,
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
@@ -777,26 +759,19 @@ class _HomePageState extends State<HomePage> {
children: [
Text(
'首页.提示标题'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
letterSpacing: 0.0,
fontWeight:
FontWeight.w600,
fontWeight: FontWeight.w600,
color: stringToColor(
"#916D46"), //固定
),
),
Text(
'首页.提示内容1'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
@@ -808,10 +783,7 @@ class _HomePageState extends State<HomePage> {
),
Text(
'首页.提示内容2'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
@@ -822,10 +794,7 @@ class _HomePageState extends State<HomePage> {
),
Text(
'首页.提示内容3'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,

View File

@@ -126,22 +126,18 @@ class _MessagePageState extends State<MessagePage> {
children: [
Text(
'体征消息'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.title_text_fontSize,
color: messageController
color:
messageController
.model.type ==
2
? themeController
.currentColor
.sc3
.currentColor.sc3
: themeController
.currentColor
.sc2,
.currentColor.sc2,
),
),
Obx(() {
@@ -189,22 +185,18 @@ class _MessagePageState extends State<MessagePage> {
children: [
Text(
'系统消息'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: AppConstants()
.title_text_fontSize,
color: messageController
color:
messageController
.model.type ==
1
? themeController
.currentColor
.sc3
.currentColor.sc3
: themeController
.currentColor
.sc2,
.currentColor.sc2,
),
),
Obx(() {
@@ -261,6 +253,7 @@ class _MessagePageState extends State<MessagePage> {
],
),
),
SizedBox(height: 17.rpx),
],
),

View File

@@ -207,10 +207,7 @@ class _MinePageState extends State<MinePage> {
.user!.nick_name ??
'未命名'.tr)
: "未命名".tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -241,10 +238,7 @@ class _MinePageState extends State<MinePage> {
}
})()
: "未知数据".tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc4,
@@ -253,7 +247,6 @@ class _MinePageState extends State<MinePage> {
letterSpacing: 0.0,
),
),
].divide(SizedBox(height: 20.rpx)),
),
].divide(SizedBox(width: 35.rpx)),
@@ -277,9 +270,7 @@ class _MinePageState extends State<MinePage> {
children: [
Text(
login == 1 ? '编辑'.tr : '我的.去登录'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -370,10 +361,7 @@ class _MinePageState extends State<MinePage> {
),
Text(
'我的.我的设备'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -446,10 +434,7 @@ class _MinePageState extends State<MinePage> {
),
Text(
'我的.设备报修'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -522,10 +507,7 @@ class _MinePageState extends State<MinePage> {
),
Text(
'我的.操作说明'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -598,10 +580,7 @@ class _MinePageState extends State<MinePage> {
),
Text(
'我的.关注我们'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -680,10 +659,7 @@ class _MinePageState extends State<MinePage> {
),
Text(
'我的.当前版本'.tr,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -699,13 +675,9 @@ class _MinePageState extends State<MinePage> {
children: [
Text(
'V1.0.2506.06',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color:
Color(0xFFD9E3EB),
color: Color(0xFFD9E3EB),
fontSize: 26.rpx,
letterSpacing: 0.0,
),

View File

@@ -88,9 +88,7 @@ class _HomeDeviceTypeState extends State<HomeDeviceType> {
48.rpx, 24.rpx, 0, 0),
child: Text(
'选择类型',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
@@ -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,7 +176,7 @@ 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(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
fontWeight: FontWeight.bold,

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

View File

@@ -67,9 +67,7 @@ class ShareUserWidget extends GetView {
alignment: const AlignmentDirectional(-1, 0),
child: Text(
'${info['userName']}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
@@ -87,9 +85,7 @@ class ShareUserWidget extends GetView {
: info['opType'] == 2
? '仅允许对方查看该设备'
: '',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFFC8CBD2),
fontSize: 20.rpx,
@@ -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,9 +93,7 @@ class AddressListPage extends GetView<AddressListController> {
31, 27, 0, 26),
child: Text(
'我的地址',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize.title_size,
letterSpacing: 0,
@@ -186,9 +184,7 @@ class AddressListPage extends GetView<AddressListController> {
SizedBox(width: 10), // 加号和文字间距
Text(
'添加新地址',
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize: AppFontsize.normal_text_size,

View File

@@ -108,13 +108,11 @@ class AddressModuleWidget extends GetView {
element != null &&
element.isNotEmpty)
.join(' '),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
@@ -133,13 +131,11 @@ class AddressModuleWidget extends GetView {
? '无详细地址'
: addressListController.model
.addressList[index]['detail'],
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
@@ -151,13 +147,11 @@ class AddressModuleWidget extends GetView {
child: Text(
'${addressListController.model.addressList[index]['name']} ' +
'${addressListController.model.addressList[index]['phone']} ',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
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,9 +231,7 @@ class AddressModuleWidget extends GetView {
alignment: AlignmentDirectional(1, 0),
child: Text(
'编辑',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.small_text_size,

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,15 +149,11 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
0, -1),
child: Text(
'选择需要报修的设备',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing: 0,
fontSize:
AppFontsize
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,15 +267,18 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
300,
height:
56,
searchHintTextStyle: FlutterFlowTheme.of(context).labelMedium.override(
searchHintTextStyle:
TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
searchTextStyle: FlutterFlowTheme.of(context).bodyMedium.override(
searchTextStyle:
TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
textStyle: FlutterFlowTheme.of(context).bodyMedium.override(
textStyle:
TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),
@@ -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,17 +408,19 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
enabledBorder:
UnderlineInputBorder(
@@ -476,10 +477,8 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
18),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -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,17 +578,19 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
enabledBorder:
UnderlineInputBorder(
@@ -646,10 +647,8 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
18),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -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,17 +748,19 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: 'Readex Pro',
letterSpacing: 0,
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
),
enabledBorder:
UnderlineInputBorder(
@@ -816,10 +817,8 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
10,
18),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
@@ -987,10 +986,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
0, 0),
child: Text(
'上传设备故障照片',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: const Color(
@@ -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,42 +1075,39 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
.issue_img!
.length
.toString(),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
Text(
'/',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
),
Text(
'3',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
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,17 +1208,12 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
.fromSTEB(0, 15, 0, 16),
child: Text(
'请描述一下您的问题',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0,
fontWeight:
FontWeight.w600,
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,12 +1327,8 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
maxLines: 4,
maxLength:
100, // ✅ 限制最多输入 100 字符
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
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,9 +1822,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
),
child: Text(
"提交申请",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,

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,24 +113,20 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'${data["name"]}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
lineHeight: 1,
height: 1,
color: Colors.white),
),
Text(
'地址:${data["addressDetail"]}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1,
height: 1,
color: Color(0xFF929699)),
),
].divide(SizedBox(
@@ -145,9 +141,7 @@ class BookInfoPage extends GetView<BookInfoController> {
alignment: Alignment.centerLeft,
child: Text(
'体验日期',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
@@ -184,9 +178,7 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'体验时段',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
@@ -234,10 +226,7 @@ class BookInfoPage extends GetView<BookInfoController> {
null
? "${controller.model.time_period?[controller.model.select_time_index!]?["timeStr"]}"
: '请选择时间',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
@@ -249,16 +238,13 @@ class BookInfoPage extends GetView<BookInfoController> {
null)
? stringToColor(
'#D0D0D0')
: Colors
.white),
: Colors.white),
),
),
Icon(
Icons
.keyboard_arrow_down_sharp,
color: FlutterFlowTheme.of(
context)
.secondaryText,
color: Colors.white,
size: 16,
),
],
@@ -285,9 +271,7 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'体验人员',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
@@ -328,29 +312,19 @@ class BookInfoPage extends GetView<BookInfoController> {
false,
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '输入姓名',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Color(
0xFF929699)),
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',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color:
Colors.white),
color: Colors.white),
textAlign: TextAlign.end,
),
),
@@ -436,9 +405,7 @@ class BookInfoPage extends GetView<BookInfoController> {
children: [
Text(
'手机号',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
@@ -480,29 +447,19 @@ class BookInfoPage extends GetView<BookInfoController> {
keyboardType:
TextInputType.phone,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
),
hintText: '输入手机号',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
color: Color(
0xFF929699)),
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',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color:
Colors.white),
color: Colors.white),
textAlign: TextAlign.end,
),
),
@@ -700,8 +652,7 @@ class BookInfoPage extends GetView<BookInfoController> {
),
child: Text(
"提交预约",
style:
FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,

View File

@@ -102,9 +102,7 @@ class BookSuccessPage extends GetView {
alignment: const AlignmentDirectional(0, 0),
child: Text(
'预约成功!',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
color: Colors.white,

View File

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

View File

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

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,7 +323,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
children: [
Text(
device.name ?? '蓝牙绑定.默认设备名称'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 30.rpx,
@@ -350,7 +351,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
children: [
Text(
"蓝牙绑定.信号强度".tr + '${device.rssi ?? '-'}dBm',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -360,7 +361,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
SizedBox(width: 40.rpx),
Text(
"蓝牙绑定.SN".tr + '${device.sn ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF5F9FD),
fontSize: 26.rpx,
@@ -371,7 +372,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
),
Text(
"蓝牙绑定.蓝牙地址".tr + '${device.deviceId ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -380,7 +381,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
),
Text(
"蓝牙绑定.mac".tr + '${device.mac ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,
@@ -392,7 +393,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
Text(
"蓝牙绑定.网络".tr +
'${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -404,7 +405,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
children: [
Text(
"蓝牙绑定.传感器".tr + "",
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFEBF2F8),
fontSize: 26.rpx,
@@ -413,7 +414,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
),
Text(
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: device.bind == false
? const Color(0xFF1AD2B5)
@@ -428,7 +429,7 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
),
Text(
"版本".tr + '${device.version ?? '-'}',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFF6FAFD),
fontSize: 26.rpx,

View File

@@ -55,7 +55,7 @@ class DeviceInfoWidget extends GetView {
Text(
deviceListController.model.deviceList[index]['name'] ??
'SWES系列 01号智能一键入眠床',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
@@ -108,32 +108,23 @@ class DeviceInfoWidget extends GetView {
.deviceList[
index]['_id'] ??
''),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFFC8CBD2),
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1),
height: 1),
),
TextSpan(
text:
' (${deviceListController.model.deviceList[index]['status'] ?? ''})',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
color: deviceListController
.model
.deviceList[index]
[
'status'] ==
.deviceList[
index]
['status'] ==
'在线'
? Color(
0xFF07C160) // 在线的颜色
@@ -160,14 +151,12 @@ class DeviceInfoWidget extends GetView {
.model.deviceList[index]
['roomName'] ??
''),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1),
height: 1),
),
),
Align(
@@ -180,14 +169,12 @@ class DeviceInfoWidget extends GetView {
?["status"]
?.toString() ??
''),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFC8CBD2),
fontSize: 26.rpx,
letterSpacing: 0,
lineHeight: 1),
height: 1),
),
)
].divide(SizedBox(height: 36.rpx)),
@@ -207,9 +194,7 @@ class DeviceInfoWidget extends GetView {
text: '控制',
options: FFButtonOptions(
color: Color(0XFF85F5FF),
textStyle: FlutterFlowTheme.of(context)
.titleSmall
.override(
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 28.rpx,
@@ -282,12 +267,10 @@ class DeviceInfoWidget extends GetView {
if (device['bind_type'] == 1)
Text(
'已分享:',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
@@ -303,13 +286,11 @@ class DeviceInfoWidget extends GetView {
['shareNum'] ??
0)
.toString(),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize: AppFontsize
.normal_text_size,
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
@@ -317,12 +298,10 @@ class DeviceInfoWidget extends GetView {
if (device['bind_type'] == 1)
Text(
'',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
@@ -330,12 +309,10 @@ class DeviceInfoWidget extends GetView {
if (device['bind_type'] == 2)
Text(
'来自',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
color: Colors.white,
),
@@ -347,13 +324,11 @@ 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(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF85F5FF),
fontSize: AppFontsize
.normal_text_size,
fontSize:
AppFontsize.normal_text_size,
letterSpacing: 0,
),
),
@@ -361,9 +336,7 @@ class DeviceInfoWidget extends GetView {
if (device['bind_type'] == 2)
Text(
'的分享',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 21.rpx,
letterSpacing: 0,
@@ -407,9 +380,7 @@ class DeviceInfoWidget extends GetView {
SizedBox(width: 5),
Text(
'睡眠报告',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 21.rpx,

View File

@@ -67,7 +67,7 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
/// 居中标题
Text(
'绑定成功.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -185,9 +185,7 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'绑定成功.绑定成功'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 48.rpx,
letterSpacing: 0.0,
@@ -206,9 +204,7 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'绑定成功.分享标题'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -227,9 +223,7 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
alignment: AlignmentDirectional(-1, 0),
child: Text(
'绑定成功.分享内容'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -299,9 +293,7 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
),
Text(
'绑定成功.立即分享'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
@@ -384,9 +376,7 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
children: [
Text(
'绑定成功.返回'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()

View File

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

View File

@@ -111,7 +111,8 @@ 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;
@@ -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,7 +282,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
children: [
Text(
'添加设备'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -337,9 +339,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
false)
? "等待扫描".tr
: '扫描中'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
@@ -372,9 +372,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
children: [
Text(
'最小信号强度'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.rpx,
@@ -385,9 +383,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
child: Obx(() {
return Slider(
activeColor: Color(0xFF1FCC9B),
inactiveColor:
FlutterFlowTheme.of(context)
.alternate,
inactiveColor: Colors.white,
min: -100,
max: 50,
value:
@@ -406,9 +402,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
Obx(() {
return Text(
'${mhtBlueToothController.model.singal!.toInt()}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: stringToColor("#003058"),
fontSize: 26.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,19 +467,13 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '检索设备'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -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,10 +521,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
fillColor: themeController
.currentColor.sc22,
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -579,9 +559,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
},
child: Text(
'搜索'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -609,9 +587,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
return Text(
'匹配出的外围设备'.tr +
"${mhtBlueToothController.model.deviceDataStatus!.length}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
@@ -690,9 +666,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
Expanded(
child: Text(
'蓝牙绑定提示'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: 26.rpx,

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,11 +763,8 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
0) {
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color:
stringToColor("#003058"),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
@@ -782,9 +779,7 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
.statusContext.value = "";
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -799,9 +794,7 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
2) {
return Text(
'重新校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',

View File

@@ -645,11 +645,8 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
currentCalibrationStep.value == 2) {
return Text(
'开始另外一侧校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
color:
stringToColor("#003058"),
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
.normal_text_fontSize,
@@ -659,9 +656,7 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
}
return Text(
'开始校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()
@@ -677,9 +672,7 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
.statusContext.value = "";
return Text(
'校准中...'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: themeController
.currentColor.sc3,
fontFamily: 'Inter',
@@ -694,9 +687,7 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
2) {
return Text(
'重新校准'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
color: stringToColor("#003058"),
fontFamily: 'Inter',
fontSize: AppConstants()

View File

@@ -144,8 +144,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
children: [
Text(
'wifi配置'.tr,
style:
FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -217,9 +216,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'下一步'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: stringToColor("#003058"),
letterSpacing: 0.0,
@@ -355,14 +352,12 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
children: [
Text(
'可用WLAN'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color:
themeController.currentColor.sc3,
),
),
],
@@ -429,10 +424,8 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
InputDecoration(
isDense:
true,
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle:
TextStyle(
fontFamily:
'Inter',
fontSize:
@@ -443,7 +436,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
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,17 +619,12 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
children: [
Text(
wifiItem['ssid'] ?? '',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,
color:
themeController
.currentColor
.sc3,
color: themeController
.currentColor.sc3,
),
),
if (blueteethBindController
@@ -767,9 +751,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
),
Text(
'刷新'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,

View File

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

View File

@@ -113,26 +113,22 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
children: [
Text(
'将以下设备分享给您的家人或朋友 ',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
lineHeight: 1,
height: 1,
),
),
Text(
'设备ID${deviceController.model.deviceMain['mac']}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF6BFDAC),
fontSize: 26.rpx,
letterSpacing: 0.0,
lineHeight: 1),
height: 1),
),
].divide(SizedBox(height: 65.rpx)),
),
@@ -157,14 +153,10 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
controller: _phoneController,
decoration: InputDecoration(
hintText: '请输入对方手机号',
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color: const Color(
0xFF929699),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color:
const Color(0xFF929699),
fontSize: 36.rpx,
),
enabledBorder:
@@ -195,12 +187,8 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
const EdgeInsets.only(
left: 10, bottom: 5),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 36.rpx,
),
@@ -439,12 +427,8 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
children: [
Text(
'允许对方控制该设备',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -494,12 +478,8 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
children: [
Text(
'仅允许对方查看该设备',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -556,10 +536,7 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
EdgeInsetsDirectional.fromSTEB(
30.rpx, 0, 30.rpx, 0),
color: const Color(0xFF84F5FF),
textStyle:
FlutterFlowTheme.of(context)
.titleSmall
.override(
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF011D33),
fontSize: 26.rpx,
@@ -596,14 +573,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
.fromSTEB(14, 0, 0, 16),
child: Text(
'已分享用户',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
letterSpacing: 0.0,
lineHeight: 1),
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,17 +122,13 @@ class _EditBedPageState extends State<EditBedPage> {
contentPadding:
const EdgeInsetsDirectional
.fromSTEB(10, 0, 10, 0),
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
fontSize: 36.rpx, // 设置输入文字大小
color: Colors.white, // 设置输入文字颜色
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
color: Color(0xFF929699),
@@ -173,9 +168,7 @@ class _EditBedPageState extends State<EditBedPage> {
BorderRadius.circular(8),
),
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
letterSpacing: 0,
),

View File

@@ -55,7 +55,7 @@ class ExperienceStoreWidget extends GetView {
child: Text(
// experienceStoreModel.name ?? '未命名',
data["name"] ?? '',
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
@@ -97,14 +97,12 @@ class ExperienceStoreWidget extends GetView {
alignment: const AlignmentDirectional(-1, 0),
child: Text(
'地址:${data["addressDetail"]}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF929699),
fontSize: 20.rpx,
letterSpacing: 0,
lineHeight: 1),
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(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF929699),
fontSize: 20.rpx,
letterSpacing: 0,
lineHeight: 1),
height: 1),
),
),
),
@@ -171,9 +167,7 @@ class ExperienceStoreWidget extends GetView {
),
Text(
'咨询',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.small_text_size,
@@ -230,9 +224,7 @@ class ExperienceStoreWidget extends GetView {
),
Text(
'导航',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: AppFontsize.small_text_size,
@@ -268,9 +260,7 @@ class ExperienceStoreWidget extends GetView {
padding: const EdgeInsetsDirectional.fromSTEB(
0, 0, 0, 0),
color: Color(0xFF84F5FF),
textStyle: FlutterFlowTheme.of(context)
.titleSmall
.override(
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF011D33),
fontSize: 26.rpx,

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(
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,18 +629,16 @@ class _NewHomePageState extends State<NewHomePage> {
children: [
Text(
day['week'],
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
30.rpx,
letterSpacing:
0,
color:
stringToColor("#FFFFFF"),
color: stringToColor(
"#FFFFFF"),
),
),
SizedBox(
@@ -648,18 +647,16 @@ class _NewHomePageState extends State<NewHomePage> {
Text(
day['date'],
// "哈哈",
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
fontSize:
22.rpx,
color:
stringToColor("#929699"),
color: stringToColor(
"#929699"),
),
),
SizedBox(
@@ -797,14 +794,9 @@ class _NewHomePageState extends State<NewHomePage> {
SizedBox(width: 20.rpx),
Text(
'添加新设备'.tr,
style:
FlutterFlowTheme.of(context)
.titleSmall
.override(
fontFamily:
'Readex Pro',
color: stringToColor(
"#85F5FF"),
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#85F5FF"),
letterSpacing: 0,
fontSize: 30.rpx,
),

View File

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

View File

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

View File

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

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,25 +63,17 @@ 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(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF182B7C),
fontSize: AppFontsize.title_size,
@@ -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,13 +117,10 @@ class MyExperienceWidget extends GetView {
const AlignmentDirectional(-1, 0),
child: Text(
'门店:${data["name"] ?? ""}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize:
AppFontsize.small_text_size,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
@@ -154,13 +132,10 @@ class MyExperienceWidget extends GetView {
const AlignmentDirectional(-1, 0),
child: Text(
'地址:${data['addressDetail'] ?? ""}',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize:
AppFontsize.small_text_size,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
),
@@ -172,13 +147,10 @@ class MyExperienceWidget extends GetView {
const AlignmentDirectional(-1, 0),
child: Text(
'电话:${data["hotline"]} ',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: const Color(0xFF9EA4B7),
fontSize:
AppFontsize.small_text_size,
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,15 +209,12 @@ class MyExperienceWidget extends GetView {
),
Text(
'咨询',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
// color: Color(0xFF9EA4B7),
color:
const Color(0xFF333333),
fontSize: AppFontsize
.small_text_size,
color: const Color(0xFF333333),
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
),
@@ -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,15 +269,12 @@ class MyExperienceWidget extends GetView {
),
Text(
'导航',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
// color: Color(0xFF9EA4B7),
color:
const Color(0xFF333333),
fontSize: AppFontsize
.small_text_size,
color: const Color(0xFF333333),
fontSize:
AppFontsize.small_text_size,
letterSpacing: 0,
),
),
@@ -393,13 +347,10 @@ class MyExperienceWidget extends GetView {
2
? const Color(0xFFD3B684)
: stringToColor("#D3D3D3"),
textStyle: FlutterFlowTheme.of(context)
.titleSmall
.override(
textStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize:
AppFontsize.small_text_size,
fontSize: AppFontsize.small_text_size,
letterSpacing: 0,
),
elevation: 0,

View File

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

View File

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

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,9 +158,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
// ),
child: Text(
"保存",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0XFF011D33),
letterSpacing: 0,
@@ -234,10 +231,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'姓名',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
@@ -305,10 +299,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'性别',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
@@ -357,10 +348,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
'${controller.model.peopleList[index]['gender'] == 1 ? '' : ''}',
textAlign:
TextAlign.right,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
@@ -398,9 +386,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'身高(cm)',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
@@ -442,12 +428,8 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
null
? "${controller.model.peopleList[index]['height']} cm"
: '',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
@@ -476,9 +458,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'体重(kg)',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
@@ -520,12 +500,8 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
null
? "${controller.model.peopleList[index]['weight']} kg"
: '',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 30.rpx,
),
@@ -555,10 +531,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'生日',
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,
@@ -621,10 +594,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
: '',
textAlign:
TextAlign.right,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
@@ -662,9 +632,7 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
children: [
Text(
'联系人',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: 30.rpx,

View File

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

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,9 +247,7 @@ class DeviceRepairPage extends GetView<RepairListController> {
),
child: Text(
"我要报修",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,

View File

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

View File

@@ -108,12 +108,8 @@ class ScorePage extends GetView<mh.ScoreController> {
AlignmentDirectional(0, 0),
child: Text(
'我要评价',
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: Colors.white),
@@ -295,18 +291,13 @@ class ScorePage extends GetView<mh.ScoreController> {
}
return Text(
scoreText,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 30.rpx,
letterSpacing: 0,
color: scoreColor,
fontWeight:
FontWeight
.bold),
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',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
color:
Color(0xFF9AA0B3)),
color: Color(0xFF9AA0B3)),
),
),
),
@@ -443,9 +429,7 @@ class ScorePage extends GetView<mh.ScoreController> {
),
child: Text(
"提交",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#011D33"),
letterSpacing: 0,

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,17 +64,13 @@ class SearchWidget extends GetView {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: hint,
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -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(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
color: Colors.black,
letterSpacing: 0.0,
),
cursorColor:
FlutterFlowTheme.of(context).primaryText,
// cursorColor:
// FlutterFlowTheme.of(context).primaryText,
// validator: _model
// .textControllerValidator
// .asValidator(context),
@@ -147,7 +138,7 @@ class SearchWidget extends GetView {
),
Text(
'搜索'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 30.rpx,
letterSpacing: 0.0,

View File

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

View File

@@ -74,7 +74,7 @@ class _UpdateUserPageState extends State<EditUserPage> {
children: [
Text(
'编辑资料'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -186,9 +186,7 @@ class _UpdateUserPageState extends State<EditUserPage> {
child: Center(
child: Text(
'点击更换头像'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -242,19 +240,13 @@ class _UpdateUserPageState extends State<EditUserPage> {
obscureText: false,
decoration: InputDecoration(
isDense: true,
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
),
hintText: '未命名'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
@@ -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,9 +290,7 @@ class _UpdateUserPageState extends State<EditUserPage> {
),
filled: false,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,

View File

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

View File

@@ -287,16 +287,15 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'密码登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
color:
stringToColor("#84F5FF"),
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize.title_size,
AppFontsize
.title_size,
letterSpacing:
0,
),
@@ -385,10 +384,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'短信登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
color: Colors
@@ -487,16 +484,15 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'密码登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
color: Colors
.white,
fontSize:
AppFontsize.normal_text_size,
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
@@ -582,16 +578,15 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 1),
child: Text(
'短信登录'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
color:
stringToColor("#84F5FF"),
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize.title_size,
AppFontsize
.title_size,
letterSpacing:
0,
),
@@ -673,26 +668,16 @@ class MHTLoginPage extends GetView<MHTLoginController> {
controller.model.account,
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
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),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFD2D2D2),
fontSize: 13.px,
letterSpacing: 0,
),
@@ -708,12 +693,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.fromSTEB(
10, 0, 0, 5),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -768,34 +749,22 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.model.password,
decoration:
InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
hintText: '请输入密码',
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color: Color(
0xFFD2D2D2),
fontSize:
AppFontsize
color:
Color(0xFFD2D2D2),
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
@@ -834,10 +803,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
@@ -1007,26 +973,16 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
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),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFFD2D2D2),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -1043,12 +999,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.fromSTEB(
10, 0, 0, 5),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -1101,34 +1053,22 @@ class MHTLoginPage extends GetView<MHTLoginController> {
obscureText: false,
decoration:
InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
hintText: '请输入验证码',
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color: Color(
0xFFD2D2D2),
fontSize:
AppFontsize
color:
Color(0xFFD2D2D2),
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
enabledBorder:
InputBorder.none,
@@ -1143,10 +1083,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
.fromSTEB(10, 0,
0, 5),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
fontSize: AppFontsize
@@ -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,17 +1405,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 0),
child: Text(
'我已阅读并同意'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors
.white,
color:
Colors.white,
fontSize: 12,
letterSpacing:
0,
letterSpacing: 0,
),
),
),
@@ -1498,16 +1430,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'《用户协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
color:
stringToColor(
"FF9F66"),
fontSize:
12,
fontSize: 12,
letterSpacing:
0,
),
@@ -1520,17 +1449,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
0, 0),
child: Text(
''.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors
.white,
color:
Colors.white,
fontSize: 12,
letterSpacing:
0,
letterSpacing: 0,
),
),
),
@@ -1549,16 +1474,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'《隐私协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
color:
stringToColor(
"FF9F66"),
fontSize:
12,
fontSize: 12,
letterSpacing:
0,
),
@@ -1657,10 +1579,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
child: Text(
'注:首次登录会自动创建账号'
.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
@@ -1843,8 +1763,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
BorderSide(
width:
1.5,
color: FlutterFlowTheme.of(context)
.secondaryText,
color: Colors.white,
),
activeColor:
stringToColor(
@@ -1919,16 +1838,15 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'找回密码'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize.small_text_size,
AppFontsize
.small_text_size,
letterSpacing:
0,
),
@@ -1985,14 +1903,12 @@ class MHTLoginPage extends GetView<MHTLoginController> {
},
child: Text(
'注册'.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
color:
stringToColor("#84F5FF"),
color: stringToColor(
"#84F5FF"),
fontSize:
AppFontsize.small_text_size,
letterSpacing:
@@ -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,9 +2052,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'合肥眠花糖家具有限责任公司版权所有',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.explain_size,
@@ -2149,9 +2064,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'Copyright© 2019-2029',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF9EA4B7),
fontSize: AppFontsize.explain_size,

View File

@@ -118,19 +118,13 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入手机号'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
@@ -145,9 +139,7 @@ class RegisterPage extends GetView<MHTRegisterController> {
EdgeInsetsDirectional.fromSTEB(
20.rpx, 0, 0, 10.rpx),
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
@@ -185,20 +177,13 @@ class RegisterPage extends GetView<MHTRegisterController> {
obscureText:
controller.model.pdshow!,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入密码'.tr,
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
@@ -231,12 +216,8 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
@@ -274,20 +255,13 @@ class RegisterPage extends GetView<MHTRegisterController> {
obscureText:
controller.model.cpdshow!,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入确认密码'.tr,
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
@@ -320,12 +294,8 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
style: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
@@ -365,25 +335,15 @@ class RegisterPage extends GetView<MHTRegisterController> {
// focusNode: _focusNode4,
obscureText: false,
decoration: InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
labelStyle: TextStyle(
fontFamily: 'Readex Pro',
fontSize: 26.rpx,
letterSpacing: 0,
),
hintText: '请输入验证码',
hintStyle: FlutterFlowTheme
.of(context)
.labelMedium
.override(
fontFamily:
'Readex Pro',
color:
Color(0xFF929699),
hintStyle: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
fontSize: 26.rpx,
letterSpacing: 0,
),
@@ -399,12 +359,8 @@ class RegisterPage extends GetView<MHTRegisterController> {
.fromSTEB(20.rpx, 0,
0, 0.rpx),
),
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily:
'Readex Pro',
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,17 +586,12 @@ class RegisterPage extends GetView<MHTRegisterController> {
0, 0),
child: Text(
'我已阅读并同意'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors
.white,
color: Colors.white,
fontSize: 12,
letterSpacing:
0,
letterSpacing: 0,
),
),
),
@@ -659,17 +608,14 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
child: Text(
'《用户协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
color:
stringToColor(
"FF9F66"),
fontSize: 12,
letterSpacing:
0,
letterSpacing: 0,
),
),
),
@@ -680,17 +626,12 @@ class RegisterPage extends GetView<MHTRegisterController> {
0, 0),
child: Text(
''.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors
.white,
color: Colors.white,
fontSize: 12,
letterSpacing:
0,
letterSpacing: 0,
),
),
),
@@ -707,17 +648,14 @@ class RegisterPage extends GetView<MHTRegisterController> {
},
child: Text(
'《隐私协议》'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: stringToColor(
color:
stringToColor(
"FF9F66"),
fontSize: 12,
letterSpacing:
0,
letterSpacing: 0,
),
),
),
@@ -776,12 +714,9 @@ class RegisterPage extends GetView<MHTRegisterController> {
),
child: Text(
"提交".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color:
stringToColor("#011D33"),
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,9 +289,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'柔性唤醒功能',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -356,9 +354,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'唤醒时间',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -384,9 +380,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
"${controller.model.rxhxWakeTimeToString}",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -421,9 +415,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'按摩',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -451,9 +443,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
controller.model.rxhxIsAnMo ? '' : '',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -488,9 +478,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'唤醒部位',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -516,9 +504,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
location[controller.model.rxhxLocation],
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -557,9 +543,7 @@ class _RxhxMhtState extends State<RxhxMht> {
children: [
Text(
'自定义',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Colors.white,
fontSize: 26.rpx,
@@ -633,11 +617,9 @@ class _RxhxMhtState extends State<RxhxMht> {
decoration: const BoxDecoration(),
child: Text(
'*注:开启该功能后,在设置的时间点,设备将启动一段固定时长的柔性唤醒功能。',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: Color(0xFF929699),
color: Colors.white,
fontSize: 20.rpx,
letterSpacing: 0,
),

View File

@@ -60,7 +60,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
/// 居中标题
Text(
'修改密码'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -137,14 +137,10 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'输入手机号码'.tr,
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color:
Colors.white,
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -178,28 +174,17 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
obscureText: false,
decoration:
InputDecoration(
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
letterSpacing:
0,
letterSpacing: 0,
),
enabledBorder:
UnderlineInputBorder(
@@ -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,15 +241,11 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
.fromSTEB(8,
0, 0, 8),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: themeController
.currentColor
.sc4,
.currentColor.sc4,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -295,14 +272,10 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'输入验证码',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color:
Colors.white,
color: Colors.white,
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -363,30 +336,28 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
false,
decoration:
InputDecoration(
labelStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
hintText:
'请输验证码',
hintStyle: FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle:
TextStyle(
fontFamily:
'Readex Pro',
color: themeController
.currentColor
.sc4,
fontSize:
AppFontsize.normal_text_size,
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
@@ -409,14 +380,13 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
0,
12),
),
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style:
TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize.normal_text_size,
AppFontsize
.normal_text_size,
letterSpacing:
0,
),
@@ -537,10 +507,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'输入新密码',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
@@ -575,34 +542,23 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
decoration:
InputDecoration(
hintText: "请输入新密码".tr,
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color: themeController
color:
themeController
.currentColor
.sc4,
fontSize:
AppFontsize
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
enabledBorder:
UnderlineInputBorder(
@@ -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,14 +641,11 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
},
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Color(
0xFF333333),
color:
Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -721,10 +670,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
-1, 0),
child: Text(
'确认新密码',
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Colors.white,
@@ -760,34 +706,23 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
InputDecoration(
hintText:
"请输入确认密码".tr,
labelStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily:
'Readex Pro',
fontSize:
AppFontsize
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
hintStyle:
FlutterFlowTheme.of(
context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily:
'Readex Pro',
color: themeController
color:
themeController
.currentColor
.sc4,
fontSize:
AppFontsize
fontSize: AppFontsize
.normal_text_size,
letterSpacing:
0,
letterSpacing: 0,
),
enabledBorder:
UnderlineInputBorder(
@@ -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,14 +806,11 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
},
),
),
style: FlutterFlowTheme
.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily:
'Readex Pro',
color: Color(
0xFF333333),
color:
Color(0xFF333333),
fontSize: AppFontsize
.normal_text_size,
letterSpacing: 0,
@@ -950,9 +878,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
child: Center(
child: Text(
'确定'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: stringToColor("#003058"),
fontSize: AppFontsize.normal_text_size,

View File

@@ -89,7 +89,7 @@ class _EPageState extends State<PersonPage> {
/// 居中标题
Text(
'人员资料.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -133,9 +133,7 @@ class _EPageState extends State<PersonPage> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'人员资料.保存'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
@@ -191,23 +189,17 @@ class _EPageState extends State<PersonPage> {
decoration: InputDecoration(
fillColor: Colors.transparent,
isDense: true,
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
hintText: '人员资料.名字输入提示'.tr,
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
@@ -227,8 +219,6 @@ class _EPageState extends State<PersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -236,8 +226,6 @@ class _EPageState extends State<PersonPage> {
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -245,13 +233,10 @@ class _EPageState extends State<PersonPage> {
),
filled: true,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color:
themeController.currentColor.sc3,
color: themeController.currentColor.sc3,
),
textAlign: TextAlign.center,
cursorColor:
@@ -307,20 +292,15 @@ class _EPageState extends State<PersonPage> {
),
Text(
''.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: isMaleGreyed
? themeController
.currentColor
.sc4
.currentColor.sc4
: themeController
.currentColor
.sc3,
.currentColor.sc3,
),
),
].divide(
@@ -361,18 +341,13 @@ class _EPageState extends State<PersonPage> {
),
Text(
''.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: isFemaleGreyed
? themeController
.currentColor
.sc4
.currentColor.sc4
: themeController
.currentColor
.sc3,
.currentColor.sc3,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
@@ -427,18 +402,13 @@ class _EPageState extends State<PersonPage> {
personController.dateTime!)
: '人员资料.生日输入提示'.tr,
textAlign: TextAlign.right,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: personController.dateTime !=
null
? themeController
.currentColor.sc3
: themeController
.currentColor.sc4,
fontSize: AppConstants()
.normal_text_fontSize,
color: personController.dateTime != null
? themeController.currentColor.sc3
: themeController.currentColor.sc4,
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0,
),
),
@@ -480,12 +450,9 @@ class _EPageState extends State<PersonPage> {
},
autofocus: false,
obscureText: false,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color:
Colors.transparent, // 隐藏输入文字
color: Colors.transparent, // 隐藏输入文字
letterSpacing: 0.0,
),
textAlign: TextAlign.center,
@@ -495,10 +462,7 @@ class _EPageState extends State<PersonPage> {
fillColor: Colors.transparent,
isDense: true,
hintText: '身高输入提示'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc4,
@@ -524,9 +488,6 @@ class _EPageState extends State<PersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -535,9 +496,6 @@ class _EPageState extends State<PersonPage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -555,10 +513,7 @@ class _EPageState extends State<PersonPage> {
: Text(
'${height}cm',
textAlign: TextAlign.center,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -605,12 +560,9 @@ class _EPageState extends State<PersonPage> {
},
autofocus: false,
obscureText: false,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color:
Colors.transparent, // 隐藏输入文字
color: Colors.transparent, // 隐藏输入文字
letterSpacing: 0.0,
),
textAlign: TextAlign.center,
@@ -620,10 +572,7 @@ class _EPageState extends State<PersonPage> {
fillColor: Colors.transparent,
isDense: true,
hintText: '人员资料.体重输入提示'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc4,
@@ -649,9 +598,6 @@ class _EPageState extends State<PersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -660,9 +606,6 @@ class _EPageState extends State<PersonPage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -680,10 +623,7 @@ class _EPageState extends State<PersonPage> {
: Text(
'${weight}kg',
textAlign: TextAlign.center,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -707,9 +647,7 @@ class _EPageState extends State<PersonPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'人员资料.疾病标题'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF3F4F5),
fontSize: 30.rpx,
@@ -791,9 +729,7 @@ class _EPageState extends State<PersonPage> {
Expanded(
child: Text(
'人员资料.提示'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: 26.rpx,
@@ -841,7 +777,7 @@ class _EPageState extends State<PersonPage> {
children: [
Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFC2CED7),
fontSize: 30.rpx,

View File

@@ -78,15 +78,12 @@ Future showDateSelectionDialog(BuildContext context,
InkWell(
child: Text(
"日期.取消".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color:
themeController.currentColor.sc3,
color: themeController.currentColor.sc3,
letterSpacing: 0,
fontSize: AppConstants()
.normal_text_fontSize),
fontSize:
AppConstants().normal_text_fontSize),
),
onTap: () {
Get.back();
@@ -94,9 +91,7 @@ Future showDateSelectionDialog(BuildContext context,
),
Text(
"$title",
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -107,15 +102,12 @@ Future showDateSelectionDialog(BuildContext context,
InkWell(
child: Text(
"日期.确定".tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color:
themeController.currentColor.sc2,
color: themeController.currentColor.sc2,
letterSpacing: 0,
fontSize: AppConstants()
.normal_text_fontSize),
fontSize:
AppConstants().normal_text_fontSize),
),
onTap: () {
checkChange?.call(DateTime(years[yearIndex],
@@ -217,7 +209,7 @@ Future showDateSelectionDialog(BuildContext context,
}
TextStyle _unitStyle(BuildContext context) {
return FlutterFlowTheme.of(context).bodyMedium.override(
return TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,
@@ -248,7 +240,7 @@ getOnePicker(BuildContext context, List arr, int checkIndex,
alignment: Alignment.center,
child: Text(
"${arr[index]}$unit", // ✅ 每项都带单位
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
fontSize: 30.rpx,

View File

@@ -84,7 +84,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
/// 居中标题
Text(
'人员资料.标题'.tr,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: themeController.currentColor.sc3,
letterSpacing: 0,
@@ -132,9 +132,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
16.rpx, 0, 16.rpx, 0),
child: Text(
'完成'.tr,
style: FlutterFlowTheme.of(context)
.titleSmall
.override(
style: TextStyle(
fontFamily: 'Inter Tight',
color: themeController.currentColor.sc3,
letterSpacing: 0.0,
@@ -191,23 +189,17 @@ class _UpdatePageState extends State<UpdatePersonPage> {
decoration: InputDecoration(
fillColor: Colors.transparent,
isDense: true,
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
labelStyle: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color: themeController
.currentColor.sc3,
color: themeController.currentColor.sc3,
),
hintText: '人员资料.名字输入提示'.tr,
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: themeController
.currentColor.sc4,
color: themeController.currentColor.sc4,
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
@@ -227,8 +219,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -236,8 +226,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
),
focusedErrorBorder: OutlineInputBorder(
borderSide: BorderSide(
color: FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -245,13 +233,10 @@ class _UpdatePageState extends State<UpdatePersonPage> {
),
filled: true,
),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
letterSpacing: 0.0,
color:
themeController.currentColor.sc3,
color: themeController.currentColor.sc3,
),
textAlign: TextAlign.center,
cursorColor:
@@ -307,20 +292,15 @@ class _UpdatePageState extends State<UpdatePersonPage> {
),
Text(
''.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
fontSize: 26.rpx,
letterSpacing: 0.0,
color: isMaleGreyed
? themeController
.currentColor
.sc4
.currentColor.sc4
: themeController
.currentColor
.sc3,
.currentColor.sc3,
),
),
].divide(
@@ -361,18 +341,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
),
Text(
''.tr,
style: FlutterFlowTheme.of(
context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: isFemaleGreyed
? themeController
.currentColor
.sc4
.currentColor.sc4
: themeController
.currentColor
.sc3,
.currentColor.sc3,
fontSize: 26.rpx,
letterSpacing: 0.0,
),
@@ -429,18 +404,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
personController.dateTime!)
: '人员资料.生日输入提示'.tr,
textAlign: TextAlign.right,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Readex Pro',
color: personController.dateTime !=
null
? themeController
.currentColor.sc3
: themeController
.currentColor.sc4,
fontSize: AppConstants()
.normal_text_fontSize,
color: personController.dateTime != null
? themeController.currentColor.sc3
: themeController.currentColor.sc4,
fontSize:
AppConstants().normal_text_fontSize,
letterSpacing: 0,
),
),
@@ -481,12 +451,9 @@ class _UpdatePageState extends State<UpdatePersonPage> {
},
autofocus: false,
obscureText: false,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color:
Colors.transparent, // 隐藏输入文字
color: Colors.transparent, // 隐藏输入文字
letterSpacing: 0.0,
),
textAlign: TextAlign.center,
@@ -496,10 +463,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
fillColor: Colors.transparent,
isDense: true,
hintText: '身高输入提示'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc4,
@@ -525,9 +489,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -536,9 +497,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -556,10 +514,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
: Text(
'${height}cm',
textAlign: TextAlign.center,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -607,12 +562,9 @@ class _UpdatePageState extends State<UpdatePersonPage> {
},
autofocus: false,
obscureText: false,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color:
Colors.transparent, // 隐藏输入文字
color: Colors.transparent, // 隐藏输入文字
letterSpacing: 0.0,
),
textAlign: TextAlign.center,
@@ -622,10 +574,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
fillColor: Colors.transparent,
isDense: true,
hintText: '人员资料.体重输入提示'.tr,
hintStyle:
FlutterFlowTheme.of(context)
.labelMedium
.override(
hintStyle: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc4,
@@ -651,9 +600,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
),
errorBorder: OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -662,9 +608,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
focusedErrorBorder:
OutlineInputBorder(
borderSide: BorderSide(
color:
FlutterFlowTheme.of(context)
.error,
width: 1.rpx,
),
borderRadius:
@@ -682,10 +625,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
: Text(
'${weight}kg',
textAlign: TextAlign.center,
style:
FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController
.currentColor.sc3,
@@ -709,9 +649,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
alignment: AlignmentDirectional(0, 0),
child: Text(
'人员资料.疾病标题'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: Color(0xFFF3F4F5),
fontSize: 30.rpx,
@@ -795,9 +733,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
Expanded(
child: Text(
'人员资料.提示'.tr,
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
style: TextStyle(
fontFamily: 'Inter',
color: themeController.currentColor.sc4,
fontSize: 26.rpx,
@@ -848,7 +784,7 @@ class _UpdatePageState extends State<UpdatePersonPage> {
children: [
Text(
title,
style: FlutterFlowTheme.of(context).bodyMedium.override(
style: TextStyle(
fontFamily: 'Inter',
color: const Color(0xFFC2CED7),
fontSize: 30.rpx,

Some files were not shown because too many files have changed in this diff Show More