更新
This commit is contained in:
@@ -57,13 +57,12 @@ class _TestWidgetState extends State<NullDataWidget> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'暂无数据'.tr,
|
'暂无数据'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
useGoogleFonts: false,
|
fontFamily: "PingFangSC",
|
||||||
fontFamily: "PingFangSC",
|
letterSpacing: 0.0,
|
||||||
letterSpacing: 0.0,
|
fontSize: 26.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
color: themeController.currentColor.sc4,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -97,12 +97,12 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'${targetDevice['person']?['name'] == null ? '未命名'.tr : targetDevice['person']['name']}',
|
'${targetDevice['person']?['name'] == null ? '未命名'.tr : targetDevice['person']['name']}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ClickableContainer(
|
ClickableContainer(
|
||||||
@@ -132,12 +132,12 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'首页.报告详情'.tr,
|
'首页.报告详情'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsetsDirectional.fromSTEB(0, 6.rpx, 0, 0.rpx),
|
padding: EdgeInsetsDirectional.fromSTEB(0, 6.rpx, 0, 0.rpx),
|
||||||
@@ -178,11 +178,11 @@ class _DynamicReportDetailWidgetState extends State<DynamicReportDetailWidget> {
|
|||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
'暂无数据'.tr,
|
'暂无数据'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 28.rpx,
|
fontSize: 28.rpx,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -246,11 +246,13 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
|
|||||||
'date': widget.data['time'] != null
|
'date': widget.data['time'] != null
|
||||||
? int.parse(widget.data['time'].toString())
|
? int.parse(widget.data['time'].toString())
|
||||||
: DateTime.now().millisecondsSinceEpoch,
|
: 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,
|
'type': 1,
|
||||||
'name': 'sleep', //'sleep', 'heartRate' 或 'breathe'
|
'name': 'sleep', //'sleep', 'heartRate' 或 'breathe'
|
||||||
'itemName': widget.data['id'],
|
'itemName': widget.data['id'],
|
||||||
'person':widget.data['person'],
|
'person': widget.data['person'],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -267,12 +269,12 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'${widget.data['name']}',
|
'${widget.data['name']}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
@@ -287,7 +289,7 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
|
|||||||
// children: [
|
// children: [
|
||||||
// Text(
|
// Text(
|
||||||
// '${widget.data['value']}',
|
// '${widget.data['value']}',
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Inter',
|
// fontFamily: 'Inter',
|
||||||
// fontSize: 36.rpx,
|
// fontSize: 36.rpx,
|
||||||
// letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
@@ -374,12 +376,12 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.data['level']}',
|
'${widget.data['level']}',
|
||||||
style: FlutterFlowTheme.of(context).titleSmall.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter Tight',
|
fontFamily: 'Inter Tight',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
fontSize: 15.rpx,
|
fontSize: 15.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -388,12 +390,12 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
|
|||||||
Text(
|
Text(
|
||||||
"正常值".tr +
|
"正常值".tr +
|
||||||
'${(widget.data['range'] ?? '').toString().isEmpty ? '未知数据'.tr : widget.data['range']}',
|
'${(widget.data['range'] ?? '').toString().isEmpty ? '未知数据'.tr : widget.data['range']}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: AppConstants().small_text_fontSize,
|
fontSize: AppConstants().small_text_fontSize,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
|
|
||||||
import 'package:ef/ef.dart';
|
import 'package:ef/ef.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
||||||
@@ -84,24 +83,24 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
|
|||||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 14.rpx),
|
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 14.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${week}',
|
'${week}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: AppConstants().title_text_fontSize,
|
fontSize: AppConstants().title_text_fontSize,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 33.rpx),
|
padding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 33.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${day}',
|
'${day}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 20.rpx,
|
fontSize: 20.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -112,14 +111,14 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
(widget.score?.isEmpty ?? true) ? '--' : widget.score!,
|
(widget.score?.isEmpty ?? true) ? '--' : widget.score!,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 48.rpx,
|
fontSize: 48.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: widget.textColor ??
|
color: widget.textColor ??
|
||||||
themeController.currentColor.sc4,
|
themeController.currentColor.sc4,
|
||||||
fontWeight: FontWeight.bold, // 加粗
|
fontWeight: FontWeight.bold, // 加粗
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if ((widget.score?.trim().isNotEmpty ?? false))
|
if ((widget.score?.trim().isNotEmpty ?? false))
|
||||||
Padding(
|
Padding(
|
||||||
@@ -127,14 +126,12 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
|
|||||||
EdgeInsetsDirectional.fromSTEB(0, 16.rpx, 0, 0.rpx),
|
EdgeInsetsDirectional.fromSTEB(0, 16.rpx, 0, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'分'.tr,
|
'分'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: AppConstants().small_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().small_text_fontSize,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -160,11 +157,11 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
|
|||||||
EdgeInsetsDirectional.fromSTEB(16.rpx, 0, 16.rpx, 0),
|
EdgeInsetsDirectional.fromSTEB(16.rpx, 0, 16.rpx, 0),
|
||||||
iconPadding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
iconPadding: EdgeInsetsDirectional.fromSTEB(0, 0, 0, 0),
|
||||||
color: widget.textColor ?? themeController.currentColor.sc4,
|
color: widget.textColor ?? themeController.currentColor.sc4,
|
||||||
textStyle: FlutterFlowTheme.of(context).titleSmall.override(
|
textStyle: TextStyle(
|
||||||
fontFamily: 'Inter Tight',
|
fontFamily: 'Inter Tight',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
borderRadius: BorderRadius.circular(50.rpx),
|
borderRadius: BorderRadius.circular(50.rpx),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
|
|||||||
|
|
||||||
import '../../controller/mh_controller/apply_repair_controller.dart';
|
import '../../controller/mh_controller/apply_repair_controller.dart';
|
||||||
|
|
||||||
|
|
||||||
class ImgPreviewDefaultWidget extends GetView {
|
class ImgPreviewDefaultWidget extends GetView {
|
||||||
ApplyRepairController applyRepairController;
|
ApplyRepairController applyRepairController;
|
||||||
|
|
||||||
@@ -13,7 +12,7 @@ class ImgPreviewDefaultWidget extends GetView {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return InkWell(
|
return InkWell(
|
||||||
// onTap: applyRepairController.uploadImg,
|
// onTap: applyRepairController.uploadImg,
|
||||||
onTap: ()async{},
|
onTap: () async {},
|
||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery.sizeOf(context).width * 0.25,
|
width: MediaQuery.sizeOf(context).width * 0.25,
|
||||||
height: MediaQuery.sizeOf(context).height * 0.15,
|
height: MediaQuery.sizeOf(context).height * 0.15,
|
||||||
@@ -38,7 +37,7 @@ class ImgPreviewDefaultWidget extends GetView {
|
|||||||
borderRadius: BorderRadius.circular(16),
|
borderRadius: BorderRadius.circular(16),
|
||||||
),
|
),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 35,
|
width: 35,
|
||||||
height: 35,
|
height: 35,
|
||||||
@@ -60,12 +59,12 @@ class ImgPreviewDefaultWidget extends GetView {
|
|||||||
padding: EdgeInsetsDirectional.fromSTEB(0, 8, 0, 13),
|
padding: EdgeInsetsDirectional.fromSTEB(0, 8, 0, 13),
|
||||||
child: Text(
|
child: Text(
|
||||||
' ',
|
' ',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Color(0xFF9EA4B7),
|
color: Color(0xFF9EA4B7),
|
||||||
fontSize: 11,
|
fontSize: 11,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -64,12 +64,12 @@ class ImgPreviewWidget extends GetView {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'删除',
|
'删除',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Color(0xFF9EA4B7),
|
color: Color(0xFF9EA4B7),
|
||||||
fontSize: AppFontsize.small_text_size,
|
fontSize: AppFontsize.small_text_size,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -57,99 +57,100 @@ class AddressController extends GetControllerEx<AddressModel> {
|
|||||||
address['phone'] = model.phone;
|
address['phone'] = model.phone;
|
||||||
address['isChecked'] = model.ischecked;
|
address['isChecked'] = model.ischecked;
|
||||||
|
|
||||||
try {
|
// try {
|
||||||
final data = await ef.client.rpc("get_now_datetime");
|
// final data = await ef.client.rpc("get_now_datetime");
|
||||||
final response = await ef.client.from("app_user_address").update({
|
// final response = await ef.client.from("app_user_address").update({
|
||||||
'province': address["province"],
|
// 'province': address["province"],
|
||||||
'city': address["city"],
|
// 'city': address["city"],
|
||||||
'county': address["county"],
|
// 'county': address["county"],
|
||||||
'street': address["street"],
|
// 'street': address["street"],
|
||||||
'detail': address["detail"],
|
// 'detail': address["detail"],
|
||||||
'name': address["name"],
|
// 'name': address["name"],
|
||||||
'phone': address["phone"],
|
// 'phone': address["phone"],
|
||||||
'ischecked': address['isChecked'] ? 1 : 0,
|
// 'ischecked': address['isChecked'] ? 1 : 0,
|
||||||
'update_time':
|
// 'update_time':
|
||||||
DateFormat("yyyy-MM-dd HH:mm:ss").parse("$data").toString(),
|
// DateFormat("yyyy-MM-dd HH:mm:ss").parse("$data").toString(),
|
||||||
}).eq("id", address['id']);
|
// }).eq("id", address['id']);
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
print('Error fetching repairs: $e');
|
// print('Error fetching repairs: $e');
|
||||||
return e.toString();
|
// return e.toString();
|
||||||
}
|
// }
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
addAddress(AddressModel model) async {
|
addAddress(AddressModel model) async {
|
||||||
try {
|
// try {
|
||||||
final UserInfoController userInfoController =
|
// final UserInfoController userInfoController =
|
||||||
Get.find<UserInfoController>();
|
// Get.find<UserInfoController>();
|
||||||
UserModel user = userInfoController.model.user!;
|
// UserModel user = userInfoController.model.user!;
|
||||||
|
|
||||||
// 设置省市区街道名称
|
// // 设置省市区街道名称
|
||||||
if (model.addressList != null && model.addressList!.isNotEmpty) {
|
// if (model.addressList != null && model.addressList!.isNotEmpty) {
|
||||||
if (model.addressList!.length > 0)
|
// if (model.addressList!.length > 0)
|
||||||
model.province = model.addressList![0].name; // 第一个元素为省
|
// model.province = model.addressList![0].name; // 第一个元素为省
|
||||||
if (model.addressList!.length > 1)
|
// if (model.addressList!.length > 1)
|
||||||
model.city = model.addressList![1].name; // 第二个元素为市
|
// model.city = model.addressList![1].name; // 第二个元素为市
|
||||||
if (model.addressList!.length > 2)
|
// if (model.addressList!.length > 2)
|
||||||
model.county = model.addressList![2].name; // 第三个元素为区
|
// model.county = model.addressList![2].name; // 第三个元素为区
|
||||||
if (model.addressList!.length > 3)
|
// if (model.addressList!.length > 3)
|
||||||
model.street = model.addressList![3].name; // 第四个元素为街道
|
// model.street = model.addressList![3].name; // 第四个元素为街道
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 查询数据库是否已有该用户的地址
|
// // 查询数据库是否已有该用户的地址
|
||||||
final existingAddresses = await ef.client
|
// final existingAddresses = await ef.client
|
||||||
.from('app_user_address')
|
// .from('app_user_address')
|
||||||
.select()
|
// .select()
|
||||||
.eq('user_id', user.uid!);
|
// .eq('user_id', user.uid!);
|
||||||
|
|
||||||
// 如果没有地址,将新增地址默认选中
|
// // 如果没有地址,将新增地址默认选中
|
||||||
if (existingAddresses.isEmpty) {
|
// if (existingAddresses.isEmpty) {
|
||||||
model.ischecked = true;
|
// model.ischecked = true;
|
||||||
} else if (model.ischecked == true) {
|
// } else if (model.ischecked == true) {
|
||||||
// 如果新地址被选中,将其他地址的 `ischecked` 字段设为 `0`
|
// // 如果新地址被选中,将其他地址的 `ischecked` 字段设为 `0`
|
||||||
await ef.client
|
// await ef.client
|
||||||
.from('app_user_address')
|
// .from('app_user_address')
|
||||||
.update({'ischecked': 0}).eq('user_id', user.uid!);
|
// .update({'ischecked': 0}).eq('user_id', user.uid!);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 添加新地址
|
// // 添加新地址
|
||||||
final response = await ef.client.from('app_user_address').insert({
|
// final response = await ef.client.from('app_user_address').insert({
|
||||||
'province': model.province,
|
// 'province': model.province,
|
||||||
'city': model.city,
|
// 'city': model.city,
|
||||||
'county': model.county,
|
// 'county': model.county,
|
||||||
'street': model.street,
|
// 'street': model.street,
|
||||||
'detail': model.detail,
|
// 'detail': model.detail,
|
||||||
'name': model.name,
|
// 'name': model.name,
|
||||||
'phone': model.phone,
|
// 'phone': model.phone,
|
||||||
'ischecked': model.ischecked! ? 1 : 0,
|
// 'ischecked': model.ischecked! ? 1 : 0,
|
||||||
'user_id': user.uid,
|
// 'user_id': user.uid,
|
||||||
});
|
// });
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
print(e);
|
// print(e);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<List<AddressNode>> getData({int? level, int? pid}) async {
|
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 的条件
|
// // 如果 pid 不为 null,添加 pid 的条件
|
||||||
if (pid != null) {
|
// if (pid != null) {
|
||||||
query = query.eq("pid", pid);
|
// query = query.eq("pid", pid);
|
||||||
}
|
// }
|
||||||
if (level != null) {
|
// if (level != null) {
|
||||||
query = query.eq("deep", level);
|
// query = query.eq("deep", level);
|
||||||
}
|
// }
|
||||||
List arr = await query;
|
// List arr = await query;
|
||||||
|
|
||||||
List<AddressNode> addressNodes = arr.map((item) {
|
// List<AddressNode> addressNodes = arr.map((item) {
|
||||||
return AddressNode.fromJson({
|
// return AddressNode.fromJson({
|
||||||
"name": item["ext_name"], // ext_name 对应 name
|
// "name": item["ext_name"], // ext_name 对应 name
|
||||||
"code": item["id"], // id 对应 code
|
// "code": item["id"], // id 对应 code
|
||||||
"letter": item["pinyin_prefix_upper"], // pinyin_prefix_upper 对应 letter
|
// "letter": item["pinyin_prefix_upper"], // pinyin_prefix_upper 对应 letter
|
||||||
});
|
// });
|
||||||
}).toList();
|
// }).toList();
|
||||||
|
|
||||||
return addressNodes;
|
// return addressNodes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ class UserInfoModel {
|
|||||||
String? appVersion; //app版本信息
|
String? appVersion; //app版本信息
|
||||||
|
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
Session? superbase_session;
|
// Session? superbase_session;
|
||||||
@JsonKey(ignore: true)
|
@JsonKey(ignore: true)
|
||||||
User? superbase_user;
|
// User? superbase_user;
|
||||||
|
|
||||||
String? img_bucket = 'user';
|
String? img_bucket = 'user';
|
||||||
int? login = 0; //0未登录 1 登录
|
int? login = 0; //0未登录 1 登录
|
||||||
|
|||||||
@@ -115,9 +115,13 @@ Future<void> main() async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
initLanguageSetting() {
|
initLanguageSetting() {
|
||||||
Get.put(LanguageController());
|
try {
|
||||||
LanguageController languageController = Get.find();
|
Get.put(LanguageController());
|
||||||
languageController.initLanuageList();
|
LanguageController languageController = Get.find();
|
||||||
|
languageController.initLanuageList();
|
||||||
|
} catch (e) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化微信开放平台注册
|
// 初始化微信开放平台注册
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ getOnePicker(BuildContext context, List arr, int checkIndex,
|
|||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
child: Text("${arr[index]}$unit",
|
child: Text("${arr[index]}$unit",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: textColor,
|
color: textColor,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
@@ -84,14 +84,14 @@ getOnePickers(
|
|||||||
return Center(
|
return Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"${arr[index]}$unit",
|
"${arr[index]}$unit",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: isSelected
|
color: isSelected
|
||||||
? const Color(0xFF011D33) // ✅ 选中项颜色
|
? const Color(0xFF011D33) // ✅ 选中项颜色
|
||||||
: Color(0xFF9AA0B3), // 未选中颜色
|
: Color(0xFF9AA0B3), // 未选中颜色
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
fontWeight: isSelected ? FontWeight.bold : FontWeight.normal,
|
fontWeight: isSelected ? FontWeight.bold : FontWeight.normal,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -172,13 +172,11 @@ Future showDateSelectionDialog(BuildContext context,
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
ClickableContainer(
|
ClickableContainer(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
@@ -331,13 +329,11 @@ Future<void> showWeightPickerDialog(
|
|||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Text(title,
|
Text(title,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: themeController.currentColor.sc3,
|
)),
|
||||||
fontSize: 30.rpx,
|
|
||||||
)),
|
|
||||||
ClickableContainer(
|
ClickableContainer(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
@@ -461,13 +457,11 @@ Future<void> showHeightPickerDialog(
|
|||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Text(title,
|
Text(title,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: themeController.currentColor.sc3,
|
)),
|
||||||
fontSize: 30.rpx,
|
|
||||||
)),
|
|
||||||
ClickableContainer(
|
ClickableContainer(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
@@ -728,13 +722,11 @@ Future showDayTimeSelectionDialog(
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
ClickableContainer(
|
ClickableContainer(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
@@ -871,13 +863,11 @@ Future showOneSelectionDialog(
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(title,
|
Text(title,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Colors.white,
|
)),
|
||||||
fontSize: 30.rpx,
|
|
||||||
)),
|
|
||||||
ClickableContainer(
|
ClickableContainer(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
highlightColor: Colors.transparent,
|
highlightColor: Colors.transparent,
|
||||||
|
|||||||
@@ -368,15 +368,13 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
'体征检测设备.我的e护'.tr,
|
'体征检测设备.我的e护'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.title_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
color:
|
||||||
.title_text_fontSize,
|
bodyDeviceController
|
||||||
letterSpacing: 0.0,
|
|
||||||
color: bodyDeviceController
|
|
||||||
.model
|
.model
|
||||||
.type ==
|
.type ==
|
||||||
2
|
2
|
||||||
@@ -386,7 +384,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
: themeController
|
: themeController
|
||||||
.currentColor
|
.currentColor
|
||||||
.sc2,
|
.sc2,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 10.rpx),
|
SizedBox(height: 10.rpx),
|
||||||
@@ -422,15 +420,13 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
'体征检测设备.云关爱'.tr,
|
'体征检测设备.云关爱'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.title_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
color:
|
||||||
.title_text_fontSize,
|
bodyDeviceController
|
||||||
letterSpacing: 0.0,
|
|
||||||
color: bodyDeviceController
|
|
||||||
.model
|
.model
|
||||||
.type ==
|
.type ==
|
||||||
1
|
1
|
||||||
@@ -440,7 +436,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
: themeController
|
: themeController
|
||||||
.currentColor
|
.currentColor
|
||||||
.sc2,
|
.sc2,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 10.rpx),
|
SizedBox(height: 10.rpx),
|
||||||
@@ -511,26 +507,19 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
EdgeInsets.fromLTRB(
|
EdgeInsets.fromLTRB(
|
||||||
12.rpx, 0, 0.rpx, 0),
|
12.rpx, 0, 0.rpx, 0),
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Inter',
|
||||||
context)
|
fontSize: 26.rpx,
|
||||||
.labelMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
),
|
||||||
fontFamily: 'Inter',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText: '体征检测设备.输入关键词'.tr,
|
hintText: '体征检测设备.输入关键词'.tr,
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
@@ -555,9 +544,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(
|
Colors.red,
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -568,9 +555,7 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(
|
Colors.red,
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -579,20 +564,15 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
),
|
),
|
||||||
filled: false,
|
filled: false,
|
||||||
fillColor:
|
fillColor:
|
||||||
FlutterFlowTheme.of(
|
Colors.white,
|
||||||
context)
|
),
|
||||||
.secondaryBackground,
|
style: TextStyle(
|
||||||
|
fontFamily: 'Inter',
|
||||||
|
fontSize: 26.rpx,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
color: themeController
|
||||||
|
.currentColor.sc3,
|
||||||
),
|
),
|
||||||
style:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Inter',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
cursorColor: themeController
|
cursorColor: themeController
|
||||||
.currentColor.sc3,
|
.currentColor.sc3,
|
||||||
),
|
),
|
||||||
@@ -633,17 +613,14 @@ class _BodyDevicePageState extends State<BodyDeviceWidget> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'体征检测设备.搜索'.tr,
|
'体征检测设备.搜索'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
color: themeController
|
||||||
.normal_text_fontSize,
|
.currentColor.sc2,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc2,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 14.rpx)),
|
].divide(SizedBox(width: 14.rpx)),
|
||||||
|
|||||||
@@ -420,12 +420,12 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: '请输入人员名称'.tr,
|
hintText: '请输入人员名称'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
hintStyle: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -441,13 +441,13 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: Colors.black,
|
color: Colors.black,
|
||||||
),
|
),
|
||||||
cursorColor: FlutterFlowTheme.of(context).primaryText,
|
cursorColor: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -525,12 +525,12 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
Text(
|
Text(
|
||||||
// 'TH689564522DL',
|
// 'TH689564522DL',
|
||||||
'${widget.device['person']?['name'] ?? '未命名'.tr}',
|
'${widget.device['person']?['name'] ?? '未命名'.tr}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// ClickableContainer(
|
// ClickableContainer(
|
||||||
// key: _arrowKey,
|
// key: _arrowKey,
|
||||||
@@ -587,22 +587,22 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备ID'.tr,
|
'设备ID'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${widget.device['code'] ?? '未知数据'.tr}',
|
'${widget.device['code'] ?? '未知数据'.tr}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 34.rpx)),
|
].divide(SizedBox(width: 34.rpx)),
|
||||||
),
|
),
|
||||||
@@ -618,22 +618,22 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'更新时间'.tr,
|
'更新时间'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${widget.device['status']['updateTime'] != null ? MyUtils.timestampToDateString(widget.device['status']['updateTime']) : '未知时间'.tr}',
|
'${widget.device['status']['updateTime'] != null ? MyUtils.timestampToDateString(widget.device['status']['updateTime']) : '未知时间'.tr}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 34.rpx)),
|
].divide(SizedBox(width: 34.rpx)),
|
||||||
),
|
),
|
||||||
@@ -654,25 +654,22 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'已分享'.tr,
|
'已分享'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${widget.device['shareNum']}' + "人".tr,
|
'${widget.device['shareNum']}' + "人".tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
fontFamily: 'Inter',
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
fontSize: 26.rpx,
|
letterSpacing: 0.0,
|
||||||
letterSpacing: 0.0,
|
color: themeController.currentColor.sc3,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 34.rpx)),
|
].divide(SizedBox(width: 34.rpx)),
|
||||||
),
|
),
|
||||||
@@ -738,27 +735,24 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备来源'.tr,
|
'设备来源'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
(widget.device['source']?.toString().isEmpty ?? true)
|
(widget.device['source']?.toString().isEmpty ?? true)
|
||||||
? '未知数据'.tr
|
? '未知数据'.tr
|
||||||
: widget.device['source'].toString(),
|
: widget.device['source'].toString(),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
fontFamily: 'Inter',
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
fontSize: 26.rpx,
|
letterSpacing: 0.0,
|
||||||
letterSpacing: 0.0,
|
color: themeController.currentColor.sc3,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 34.rpx)),
|
].divide(SizedBox(width: 34.rpx)),
|
||||||
),
|
),
|
||||||
@@ -790,12 +784,12 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'体征检测设备.设备状态'.tr,
|
'体征检测设备.设备状态'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
maxLines: 2,
|
maxLines: 2,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
@@ -1102,15 +1096,12 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"体征检测设备.人员资料".tr,
|
"体征检测设备.人员资料".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1146,15 +1137,12 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"体征检测设备.实时体征".tr,
|
"体征检测设备.实时体征".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1198,15 +1186,12 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"体征检测设备.消息回看".tr,
|
"体征检测设备.消息回看".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1248,15 +1233,12 @@ class _DeviceDataComponentWidgetState extends State<DeviceDataComponentWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"体征检测设备.健康报告".tr,
|
"体征检测设备.健康报告".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
|
|
||||||
import 'package:ef/ef.dart';
|
import 'package:ef/ef.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
@@ -61,12 +60,12 @@ class DeviceStatusInfoWidget extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
value,
|
value,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 48.rpx,
|
fontSize: 48.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
.divide(SizedBox(width: 18.rpx))
|
.divide(SizedBox(width: 18.rpx))
|
||||||
@@ -74,12 +73,12 @@ class DeviceStatusInfoWidget extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 39.rpx)),
|
].divide(SizedBox(height: 39.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -45,12 +45,12 @@ class _ReviewMessageWidgetWidgetState extends State<ReviewMessageWidgetWidget> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
// '实时监测结果通知'.tr,
|
// '实时监测结果通知'.tr,
|
||||||
"${messageInfo['data']!['title']}",
|
"${messageInfo['data']!['title']}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -102,12 +102,12 @@ class _ReviewMessageWidgetWidgetState extends State<ReviewMessageWidgetWidget> {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
"${label}",
|
"${label}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -124,12 +124,12 @@ class _ReviewMessageWidgetWidgetState extends State<ReviewMessageWidgetWidget> {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
"${value}",
|
"${value}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'设备详情.标题'.tr,
|
'设备详情.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -132,14 +132,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
(widget.device['code'] ?? '').toString().isNotEmpty
|
(widget.device['code'] ?? '').toString().isNotEmpty
|
||||||
? widget.device['code'].toString()
|
? widget.device['code'].toString()
|
||||||
: '未知数据'.tr,
|
: '未知数据'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
@@ -173,15 +171,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.设备名称'.tr,
|
'设备详情.设备名称'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -193,15 +188,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.MAC'.tr,
|
'设备详情.MAC'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -213,15 +205,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.型号'.tr,
|
'设备详情.型号'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -233,15 +222,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.版本'.tr,
|
'设备详情.版本'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -253,15 +239,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.网络状态'.tr,
|
'设备详情.网络状态'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -273,15 +256,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.故障状态'.tr,
|
'设备详情.故障状态'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -293,15 +273,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.更新状态'.tr,
|
'设备详情.更新状态'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -313,15 +290,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备详情.更新时间'.tr,
|
'设备详情.更新时间'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -394,15 +368,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.device['person']?['name'] ?? '未命名'.tr}',
|
'${widget.device['person']?['name'] ?? '未命名'.tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -414,15 +385,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.device['mac'] ?? '-'.tr}',
|
'${widget.device['mac'] ?? '-'.tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -434,15 +402,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'-',
|
'-',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -454,15 +419,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'-',
|
'-',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -474,15 +436,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.device['status']['status'] == 1 ? '在线'.tr : '离线'.tr}',
|
'${widget.device['status']['status'] == 1 ? '在线'.tr : '离线'.tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -494,15 +453,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.device['status']['failure'] == 1 ? '有故障'.tr : '无故障'.tr}',
|
'${widget.device['status']['failure'] == 1 ? '有故障'.tr : '无故障'.tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -514,15 +470,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.device['status']['upgrade'] == 1 ? '有更新'.tr : '无更新'.tr}',
|
'${widget.device['status']['upgrade'] == 1 ? '有更新'.tr : '无更新'.tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -534,15 +487,12 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
|||||||
AlignmentDirectional(-1.rpx, 0.rpx),
|
AlignmentDirectional(-1.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${widget.device['status']?['updateTime'] == null ? '-'.tr : MyUtils.timestampToDateString(widget.device['status']?['updateTime'])}',
|
'${widget.device['status']?['updateTime'] == null ? '-'.tr : MyUtils.timestampToDateString(widget.device['status']?['updateTime'])}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.rpx,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -91,10 +91,10 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||||
if (state == AppLifecycleState.resumed) {
|
if (state == AppLifecycleState.resumed) {
|
||||||
// 应用回到前台时重新连接WebSocket
|
// 应用回到前台时重新连接WebSocket
|
||||||
edm.EasyDartModule.logger.info("app切回页面,重连websocket");
|
edm.EasyDartModule.logger.info("app切回页面,重连websocket");
|
||||||
_initWebSocket();
|
_initWebSocket();
|
||||||
} else if (state == AppLifecycleState.paused) {
|
} else if (state == AppLifecycleState.paused) {
|
||||||
// 应用进入后台时关闭WebSocket
|
// 应用进入后台时关闭WebSocket
|
||||||
_closeWebSocket();
|
_closeWebSocket();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -170,12 +170,12 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
children: [
|
children: [
|
||||||
RichText(
|
RichText(
|
||||||
text: TextSpan(
|
text: TextSpan(
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '实时体征.标题'.tr,
|
text: '实时体征.标题'.tr,
|
||||||
@@ -655,29 +655,23 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'实时体征.姓名'.tr,
|
'实时体征.姓名'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'实时体征.年龄'.tr,
|
'实时体征.年龄'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 34.rpx)),
|
SizedBox(height: 34.rpx)),
|
||||||
@@ -688,29 +682,23 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'${device['person']?['name'] ?? '未命名'.tr}',
|
'${device['person']?['name'] ?? '未命名'.tr}',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${MyUtils.getAgeByDate(MyUtils.formatBirthdayTime(device['person']?['birthday'])) ?? '未知数据'.tr}',
|
'${MyUtils.getAgeByDate(MyUtils.formatBirthdayTime(device['person']?['birthday'])) ?? '未知数据'.tr}',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 34.rpx)),
|
SizedBox(height: 34.rpx)),
|
||||||
@@ -739,29 +727,23 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'实时体征.设备ID'.tr,
|
'实时体征.设备ID'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'实时体征.体重'.tr,
|
'实时体征.体重'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 34.rpx)),
|
SizedBox(height: 34.rpx)),
|
||||||
@@ -774,32 +756,26 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
Text(
|
Text(
|
||||||
'${device['code'] ?? '未知数据'.tr}',
|
'${device['code'] ?? '未知数据'.tr}',
|
||||||
// "D11250300003",
|
// "D11250300003",
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow:
|
overflow:
|
||||||
TextOverflow.ellipsis,
|
TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${device['person']?['weight'] ?? '未知数据'.tr}kg',
|
'${device['person']?['weight'] ?? '未知数据'.tr}kg',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 34.rpx)),
|
SizedBox(height: 34.rpx)),
|
||||||
@@ -915,15 +891,12 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
bodyMotion >= maxBodyMotion
|
bodyMotion >= maxBodyMotion
|
||||||
? '请保持静止'.tr
|
? '请保持静止'.tr
|
||||||
: "",
|
: "",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc9,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc9,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -975,14 +948,11 @@ class _InstantBodyPageState extends State<InstantBodyPage>
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
'实时体征.提示'.tr,
|
'实时体征.提示'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 23.rpx)),
|
].divide(SizedBox(width: 23.rpx)),
|
||||||
|
|||||||
@@ -118,27 +118,23 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'实时体征.姓名'.tr,
|
'实时体征.姓名'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc4,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'实时体征.年龄'.tr,
|
'实时体征.年龄'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc4,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 34.rpx)),
|
].divide(SizedBox(height: 34.rpx)),
|
||||||
),
|
),
|
||||||
@@ -148,27 +144,23 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'${widget.data['person']?['name'] ?? '未命名'.tr}',
|
'${widget.data['person']?['name'] ?? '未命名'.tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${MyUtils.getAgeByDate(MyUtils.formatBirthdayTime(widget.data['person']?['birthday'])) ?? '未知数据'.tr}',
|
'${MyUtils.getAgeByDate(MyUtils.formatBirthdayTime(widget.data['person']?['birthday'])) ?? '未知数据'.tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 34.rpx)),
|
].divide(SizedBox(height: 34.rpx)),
|
||||||
),
|
),
|
||||||
@@ -194,27 +186,23 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'实时体征.设备ID'.tr,
|
'实时体征.设备ID'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc4,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'实时体征.体重'.tr,
|
'实时体征.体重'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc4,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 34.rpx)),
|
].divide(SizedBox(height: 34.rpx)),
|
||||||
),
|
),
|
||||||
@@ -226,31 +214,25 @@ class _MessageReviewPageState extends State<MessageReviewPage> {
|
|||||||
Text(
|
Text(
|
||||||
'${widget.data['code'] ?? '未知数据'.tr}',
|
'${widget.data['code'] ?? '未知数据'.tr}',
|
||||||
// "D11250300003",
|
// "D11250300003",
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${widget.data['person']?['weight'] ?? '未知数据'.tr}kg',
|
'${widget.data['person']?['weight'] ?? '未知数据'.tr}kg',
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 34.rpx)),
|
].divide(SizedBox(height: 34.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -117,12 +117,12 @@ class _MobileScannerTestPageState extends State<MobileScannerTestPage>
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'扫一扫.标题'.tr,
|
'扫一扫.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|||||||
@@ -859,16 +859,14 @@ class _AfterCalibrationPersonPageState
|
|||||||
0) {
|
0) {
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -878,16 +876,14 @@ class _AfterCalibrationPersonPageState
|
|||||||
.statusContext.value = "";
|
.statusContext.value = "";
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -895,16 +891,14 @@ class _AfterCalibrationPersonPageState
|
|||||||
2) {
|
2) {
|
||||||
return Text(
|
return Text(
|
||||||
'重新校准'.tr,
|
'重新校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Container();
|
return Container();
|
||||||
|
|||||||
@@ -82,12 +82,12 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'人员资料.标题'.tr,
|
'人员资料.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -135,13 +135,11 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'下一步'.tr,
|
'下一步'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Inter Tight',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter Tight',
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -193,24 +191,18 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
hintText: '人员资料.名字输入提示'.tr,
|
hintText: '人员资料.名字输入提示'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
hintStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -229,8 +221,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -238,8 +228,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
focusedErrorBorder: OutlineInputBorder(
|
focusedErrorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -247,14 +235,11 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
filled: true,
|
filled: true,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -309,21 +294,16 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'男'.tr,
|
'男'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: isMaleGreyed
|
||||||
fontSize: 26.rpx,
|
? themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc4
|
||||||
color: isMaleGreyed
|
: themeController
|
||||||
? themeController
|
.currentColor.sc3,
|
||||||
.currentColor
|
),
|
||||||
.sc4
|
|
||||||
: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 14.rpx)),
|
SizedBox(height: 14.rpx)),
|
||||||
@@ -363,21 +343,16 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'女'.tr,
|
'女'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: isFemaleGreyed
|
||||||
.override(
|
? themeController
|
||||||
fontFamily: 'Inter',
|
.currentColor.sc4
|
||||||
color: isFemaleGreyed
|
: themeController
|
||||||
? themeController
|
.currentColor.sc3,
|
||||||
.currentColor
|
fontSize: 26.rpx,
|
||||||
.sc4
|
letterSpacing: 0.0,
|
||||||
: themeController
|
),
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 14.rpx)),
|
SizedBox(height: 14.rpx)),
|
||||||
@@ -431,20 +406,15 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
personController.dateTime!)
|
personController.dateTime!)
|
||||||
: '人员资料.生日输入提示'.tr,
|
: '人员资料.生日输入提示'.tr,
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: personController.dateTime != null
|
||||||
fontFamily: 'Readex Pro',
|
? themeController.currentColor.sc3
|
||||||
color: personController.dateTime !=
|
: themeController.currentColor.sc4,
|
||||||
null
|
fontSize:
|
||||||
? themeController
|
AppConstants().normal_text_fontSize,
|
||||||
.currentColor.sc3
|
letterSpacing: 0,
|
||||||
: themeController
|
),
|
||||||
.currentColor.sc4,
|
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -483,14 +453,11 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
},
|
},
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Colors.transparent, // 隐藏输入文字
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
),
|
||||||
Colors.transparent, // 隐藏输入文字
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -498,17 +465,14 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: '身高输入提示'.tr,
|
hintText: '身高输入提示'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -527,9 +491,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -538,9 +499,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -558,16 +516,13 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
: Text(
|
: Text(
|
||||||
'${height}cm',
|
'${height}cm',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc3,
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@@ -609,14 +564,11 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
},
|
},
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Colors.transparent, // 隐藏输入文字
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
),
|
||||||
Colors.transparent, // 隐藏输入文字
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -624,17 +576,14 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: '人员资料.体重输入提示'.tr,
|
hintText: '人员资料.体重输入提示'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -653,9 +602,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -664,9 +610,6 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -684,16 +627,13 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
: Text(
|
: Text(
|
||||||
'${weight}kg',
|
'${weight}kg',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc3,
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@@ -711,14 +651,12 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料.疾病标题'.tr,
|
'人员资料.疾病标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Color(0xFFF3F4F5),
|
||||||
fontFamily: 'Inter',
|
fontSize: 30.rpx,
|
||||||
color: Color(0xFFF3F4F5),
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -780,31 +718,29 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsetsDirectional.fromSTEB(
|
padding: EdgeInsetsDirectional.fromSTEB(
|
||||||
0, 8.rpx, 0, 0),
|
0, 8.rpx, 0, 0),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 23.rpx,
|
width: 23.rpx,
|
||||||
height: 23.rpx,
|
height: 23.rpx,
|
||||||
// width: double.infinity,
|
// width: double.infinity,
|
||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
'assets/img/icon/tips.svg',
|
'assets/img/icon/tips.svg',
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料.提示'.tr,
|
'人员资料.提示'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: themeController.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: themeController.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 23.rpx)),
|
].divide(SizedBox(width: 23.rpx)),
|
||||||
@@ -850,12 +786,12 @@ class _AfterUpdatePersonPageState extends State<AfterUpdatePersonPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFC2CED7),
|
color: const Color(0xFFC2CED7),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
|
|||||||
@@ -99,13 +99,12 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'wifi页.标题'.tr,
|
'wifi页.标题'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
fontFamily: 'Readex Pro',
|
||||||
fontFamily: 'Readex Pro',
|
color: themeController.currentColor.sc3,
|
||||||
color: themeController.currentColor.sc3,
|
letterSpacing: 0,
|
||||||
letterSpacing: 0,
|
fontSize: 30.rpx,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 14.rpx,
|
width: 14.rpx,
|
||||||
@@ -182,13 +181,11 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'下一步'.tr,
|
'下一步'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Inter Tight',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter Tight',
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -322,15 +319,13 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'可用WLAN'.tr,
|
'可用WLAN'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color:
|
||||||
letterSpacing: 0.0,
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -396,21 +391,19 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
InputDecoration(
|
InputDecoration(
|
||||||
isDense:
|
isDense:
|
||||||
true,
|
true,
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle:
|
||||||
context)
|
TextStyle(
|
||||||
.labelMedium
|
fontFamily:
|
||||||
.override(
|
'Inter',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Inter',
|
26.rpx,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
26.rpx,
|
0.0,
|
||||||
letterSpacing:
|
),
|
||||||
0.0,
|
|
||||||
),
|
|
||||||
hintText:
|
hintText:
|
||||||
'蓝牙绑定.输入wifi密码'
|
'蓝牙绑定.输入wifi密码'
|
||||||
.tr,
|
.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
hintStyle: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -450,8 +443,6 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -463,8 +454,6 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -474,9 +463,9 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
),
|
),
|
||||||
filled:
|
filled:
|
||||||
false,
|
false,
|
||||||
fillColor: FlutterFlowTheme.of(
|
// fillColor: FlutterFlowTheme.of(
|
||||||
context)
|
// context)
|
||||||
.secondaryBackground,
|
// .secondaryBackground,
|
||||||
suffixIcon:
|
suffixIcon:
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap:
|
onTap:
|
||||||
@@ -500,7 +489,7 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -631,18 +620,13 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
wifiItem['ssid'] ?? '',
|
wifiItem['ssid'] ?? '',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 30.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 30.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController
|
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (blueteethBindController
|
if (blueteethBindController
|
||||||
.selectWifi.value ==
|
.selectWifi.value ==
|
||||||
@@ -768,15 +752,13 @@ class _AfterWifiPagePersonState extends State<AfterWifiPagePerson> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'刷新'.tr,
|
'刷新'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -64,12 +64,12 @@ class _EPageState extends State<BindDeviceSuccess> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'绑定成功.标题'.tr,
|
'绑定成功.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -164,14 +164,12 @@ class _EPageState extends State<BindDeviceSuccess> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'绑定成功.绑定成功'.tr,
|
'绑定成功.绑定成功'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 48.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 48.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -185,14 +183,12 @@ class _EPageState extends State<BindDeviceSuccess> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'绑定成功.分享标题'.tr,
|
'绑定成功.分享标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -206,14 +202,12 @@ class _EPageState extends State<BindDeviceSuccess> {
|
|||||||
alignment: AlignmentDirectional(-1, 0),
|
alignment: AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'绑定成功.分享内容'.tr,
|
'绑定成功.分享内容'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -276,15 +270,13 @@ class _EPageState extends State<BindDeviceSuccess> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'绑定成功.立即分享'.tr,
|
'绑定成功.立即分享'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize, // 自定义字体大小
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize, // 自定义字体大小
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -347,15 +339,13 @@ class _EPageState extends State<BindDeviceSuccess> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'绑定成功.返回'.tr,
|
'绑定成功.返回'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize, // 自定义字体大小
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize, // 自定义字体大小
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -294,12 +294,12 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'蓝牙绑定.标题'.tr,
|
'蓝牙绑定.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -333,14 +333,12 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
0, 30.rpx, 0, 30.rpx),
|
0, 30.rpx, 0, 30.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'蓝牙绑定.扫描'.tr,
|
'蓝牙绑定.扫描'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Color(0xFFE8EEF3),
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: Color(0xFFE8EEF3),
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -360,21 +358,18 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'最小信号强度'.tr,
|
'最小信号强度'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: stringToColor("#003058"),
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: Color(0xFFEEF2F5),
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Obx(() {
|
child: Obx(() {
|
||||||
return Slider(
|
return Slider(
|
||||||
activeColor: Color(0xFF1FCC9B),
|
activeColor: Color(0xFF1FCC9B),
|
||||||
inactiveColor:
|
inactiveColor: Colors.white,
|
||||||
FlutterFlowTheme.of(context).alternate,
|
|
||||||
min: -100,
|
min: -100,
|
||||||
max: 50,
|
max: 50,
|
||||||
value: blueteethBindController.model.singal!,
|
value: blueteethBindController.model.singal!,
|
||||||
@@ -392,14 +387,12 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
Obx(() {
|
Obx(() {
|
||||||
return Text(
|
return Text(
|
||||||
'${blueteethBindController.model.singal!.toInt()}',
|
'${blueteethBindController.model.singal!.toInt()}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Color(0xFFE4E8EB),
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: Color(0xFFE4E8EB),
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
].divide(SizedBox(width: 30.rpx)),
|
].divide(SizedBox(width: 30.rpx)),
|
||||||
@@ -443,8 +436,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
width: 100.rpx,
|
width: 100.rpx,
|
||||||
height: 80.rpx,
|
height: 80.rpx,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(context)
|
color: Colors.white,
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: AlignmentDirectional(-1, 0),
|
alignment: AlignmentDirectional(-1, 0),
|
||||||
@@ -459,23 +451,17 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText: '蓝牙绑定.搜索提示'.tr,
|
hintText: '蓝牙绑定.搜索提示'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -494,9 +480,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: Colors.white,
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -505,9 +489,7 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: Colors.white,
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -517,13 +499,11 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
fillColor: themeController
|
fillColor: themeController
|
||||||
.currentColor.sc22,
|
.currentColor.sc22,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
@@ -590,15 +570,12 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
|
|
||||||
child: Text(
|
child: Text(
|
||||||
'搜索'.tr,
|
'搜索'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: stringToColor("#333333"), //固定
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
stringToColor("#333333"), //固定
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
@@ -623,14 +600,12 @@ class _BlueteethDevicePageState extends State<BlueteethDevicePage> {
|
|||||||
// "(${blueteethBindController.model.betDevicelist!.length})",
|
// "(${blueteethBindController.model.betDevicelist!.length})",
|
||||||
'匹配出的外围设备'.tr +
|
'匹配出的外围设备'.tr +
|
||||||
"(${blueteethBindController.model.betDevicelist!.length})",
|
"(${blueteethBindController.model.betDevicelist!.length})",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -125,10 +125,10 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color: FlutterFlowTheme.of(context).secondaryText,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
activeColor: stringToColor("#16C89F"),
|
activeColor: stringToColor("#16C89F"),
|
||||||
checkColor: FlutterFlowTheme.of(context).info,
|
checkColor: Colors.white,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
@@ -161,14 +161,12 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
|
|||||||
alignment: AlignmentDirectional(-1, 0),
|
alignment: AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
"${item['k']}",
|
"${item['k']}",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc4,
|
|
||||||
),
|
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
@@ -176,14 +174,12 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"${item['v']}",
|
"${item['v']}",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
||||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||||
@@ -20,7 +19,6 @@ class DoubleBlueteethDeviceCompoentWidget extends StatefulWidget {
|
|||||||
_DoubleBlueteethDeviceCompoentWidgetState();
|
_DoubleBlueteethDeviceCompoentWidgetState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class _DoubleBlueteethDeviceCompoentWidgetState
|
class _DoubleBlueteethDeviceCompoentWidgetState
|
||||||
extends State<DoubleBlueteethDeviceCompoentWidget> {
|
extends State<DoubleBlueteethDeviceCompoentWidget> {
|
||||||
@override
|
@override
|
||||||
@@ -57,12 +55,12 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'AITH-V3',
|
'AITH-V3',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
@@ -73,21 +71,21 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'信号强度:-36dBm',
|
'信号强度:-36dBm',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFEBF2F8),
|
color: Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'SN:12',
|
'SN:12',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF5F9FD),
|
color: Color(0xFFF5F9FD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 40.rpx)),
|
].divide(SizedBox(width: 40.rpx)),
|
||||||
),
|
),
|
||||||
@@ -97,12 +95,12 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'蓝牙地址:48:CA:43:B1:B3:B2',
|
'蓝牙地址:48:CA:43:B1:B3:B2',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
@@ -110,12 +108,12 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'mac:48CA43B1B3B0',
|
'mac:48CA43B1B3B0',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
@@ -126,33 +124,33 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'网络:在线',
|
'网络:在线',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFEBF2F8),
|
color: Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'传感器:',
|
'传感器:',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFEBF2F8),
|
color: Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'可绑定',
|
'可绑定',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFF1AD2B5),
|
color: Color(0xFF1AD2B5),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -164,29 +162,29 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'版本:02409.0301',
|
'版本:02409.0301',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Divider(
|
Divider(
|
||||||
thickness: 2.rpx,
|
thickness: 2.rpx,
|
||||||
color: FlutterFlowTheme.of(context).alternate,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'AITH-V3',
|
'AITH-V3',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
@@ -197,21 +195,21 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'信号强度:-36dBm',
|
'信号强度:-36dBm',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFEBF2F8),
|
color: Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'SN:12',
|
'SN:12',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF5F9FD),
|
color: Color(0xFFF5F9FD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 40.rpx)),
|
].divide(SizedBox(width: 40.rpx)),
|
||||||
),
|
),
|
||||||
@@ -221,12 +219,12 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'蓝牙地址:48:CA:43:B1:B3:B2',
|
'蓝牙地址:48:CA:43:B1:B3:B2',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
@@ -234,12 +232,12 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'mac:48CA43B1B3B0',
|
'mac:48CA43B1B3B0',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
@@ -250,33 +248,33 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'网络:在线',
|
'网络:在线',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFEBF2F8),
|
color: Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'传感器:',
|
'传感器:',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFEBF2F8),
|
color: Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'可绑定',
|
'可绑定',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFF1AD2B5),
|
color: Color(0xFF1AD2B5),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -288,18 +286,17 @@ class _DoubleBlueteethDeviceCompoentWidgetState
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'版本:02409.0301',
|
'版本:02409.0301',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFFF6FAFD),
|
color: Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 37.rpx)),
|
].divide(SizedBox(height: 37.rpx)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
575
lib/pages/device_bind/componnet/MessageSetting.dart
Normal file
575
lib/pages/device_bind/componnet/MessageSetting.dart
Normal 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,
|
||||||
|
)),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -110,7 +110,6 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onCancel: () {
|
onCancel: () {
|
||||||
|
|
||||||
print('用户点击了取消');
|
print('用户点击了取消');
|
||||||
blueteethBindController.currentDeviceMac.value = "";
|
blueteethBindController.currentDeviceMac.value = "";
|
||||||
blueteethBindController.updateAll();
|
blueteethBindController.updateAll();
|
||||||
@@ -140,12 +139,12 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
device.name ?? '蓝牙绑定.默认设备名称'.tr,
|
device.name ?? '蓝牙绑定.默认设备名称'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
if (blueteethBindController.currentDeviceMac.value ==
|
if (blueteethBindController.currentDeviceMac.value ==
|
||||||
@@ -169,77 +168,77 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.信号强度".tr + ':${device.rssi ?? '-'}dBm',
|
"蓝牙绑定.信号强度".tr + ':${device.rssi ?? '-'}dBm',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 40.rpx),
|
SizedBox(width: 40.rpx),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.SN".tr + ':${device.sn ?? '-'}',
|
"蓝牙绑定.SN".tr + ':${device.sn ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF5F9FD),
|
color: const Color(0xFFF5F9FD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.蓝牙地址".tr + ':${device.deviceId ?? '-'}',
|
"蓝牙绑定.蓝牙地址".tr + ':${device.deviceId ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.mac".tr + ':${device.mac ?? '-'}',
|
"蓝牙绑定.mac".tr + ':${device.mac ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.网络".tr +
|
"蓝牙绑定.网络".tr +
|
||||||
':${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
|
':${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 145.rpx),
|
SizedBox(width: 145.rpx),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.传感器".tr + ":",
|
"蓝牙绑定.传感器".tr + ":",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
|
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: device.bind == false
|
color: device.bind == false
|
||||||
? const Color(0xFF1AD2B5)
|
? const Color(0xFF1AD2B5)
|
||||||
: themeController.currentColor.sc9,
|
: themeController.currentColor.sc9,
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -247,12 +246,12 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"版本".tr + '${device.version ?? '-'}',
|
"版本".tr + '${device.version ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 37.rpx)),
|
].divide(SizedBox(height: 37.rpx)),
|
||||||
),
|
),
|
||||||
@@ -292,7 +291,7 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
return;
|
return;
|
||||||
} else {}
|
} else {}
|
||||||
}
|
}
|
||||||
TopSlideNotification.show(context,text: "双人版绑定修复中");
|
TopSlideNotification.show(context, text: "双人版绑定修复中");
|
||||||
print('选中了设备索引:$selectedIndex');
|
print('选中了设备索引:$selectedIndex');
|
||||||
//配置wifi
|
//配置wifi
|
||||||
},
|
},
|
||||||
@@ -354,12 +353,12 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
device.name ?? '蓝牙绑定.默认设备名称'.tr,
|
device.name ?? '蓝牙绑定.默认设备名称'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
if (blueteethBindController.currentDeviceMac.value ==
|
if (blueteethBindController.currentDeviceMac.value ==
|
||||||
@@ -382,77 +381,77 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.信号强度".tr + ':${device.rssi ?? '-'}dBm',
|
"蓝牙绑定.信号强度".tr + ':${device.rssi ?? '-'}dBm',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 40.rpx),
|
SizedBox(width: 40.rpx),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.SN".tr + ':${device.sn ?? '-'}',
|
"蓝牙绑定.SN".tr + ':${device.sn ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF5F9FD),
|
color: const Color(0xFFF5F9FD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.蓝牙地址".tr + ':${device.deviceId ?? '-'}',
|
"蓝牙绑定.蓝牙地址".tr + ':${device.deviceId ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.mac".tr + ':${device.mac ?? '-'}',
|
"蓝牙绑定.mac".tr + ':${device.mac ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.网络".tr +
|
"蓝牙绑定.网络".tr +
|
||||||
':${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
|
':${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 145.rpx),
|
SizedBox(width: 145.rpx),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.传感器".tr + ":",
|
"蓝牙绑定.传感器".tr + ":",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
|
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: device.bind == false
|
color: device.bind == false
|
||||||
? const Color(0xFF1AD2B5)
|
? const Color(0xFF1AD2B5)
|
||||||
: themeController.currentColor.sc9,
|
: themeController.currentColor.sc9,
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -460,12 +459,12 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"版本".tr + '${device.version ?? '-'}',
|
"版本".tr + '${device.version ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
height: 37.rpx,
|
height: 37.rpx,
|
||||||
|
|||||||
@@ -53,15 +53,16 @@ void showBindDoubleDialog(
|
|||||||
Align(
|
Align(
|
||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
|
padding:
|
||||||
|
EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'蓝牙绑定.双人版绑定标题'.tr,
|
'蓝牙绑定.双人版绑定标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -114,16 +115,20 @@ void showBindDoubleDialog(
|
|||||||
|
|
||||||
// 确定按钮
|
// 确定按钮
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsetsDirectional.fromSTEB(60.rpx, 100.rpx, 60.rpx, 0),
|
padding: EdgeInsetsDirectional.fromSTEB(
|
||||||
|
60.rpx, 100.rpx, 60.rpx, 0),
|
||||||
child: _buildActionButton(
|
child: _buildActionButton(
|
||||||
context,
|
context,
|
||||||
text: '蓝牙绑定.确定'.tr,
|
text: '蓝牙绑定.确定'.tr,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Get.back();
|
Get.back();
|
||||||
|
|
||||||
int selectedIndex = blueteethBindController.model.deviceIndex0!
|
int selectedIndex =
|
||||||
? 0
|
blueteethBindController.model.deviceIndex0!
|
||||||
: (blueteethBindController.model.deviceIndex1! ? 1 : 2);
|
? 0
|
||||||
|
: (blueteethBindController.model.deviceIndex1!
|
||||||
|
? 1
|
||||||
|
: 2);
|
||||||
|
|
||||||
onConfirm(selectedIndex);
|
onConfirm(selectedIndex);
|
||||||
},
|
},
|
||||||
@@ -131,7 +136,8 @@ void showBindDoubleDialog(
|
|||||||
),
|
),
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
Padding(
|
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(
|
child: _buildActionButton(
|
||||||
context,
|
context,
|
||||||
text: '蓝牙绑定.取消'.tr,
|
text: '蓝牙绑定.取消'.tr,
|
||||||
@@ -150,7 +156,6 @@ void showBindDoubleDialog(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Future<void> showHaveBindDialog(BuildContext context) async {
|
Future<void> showHaveBindDialog(BuildContext context) async {
|
||||||
ThemeController themeController = Get.find();
|
ThemeController themeController = Get.find();
|
||||||
|
|
||||||
@@ -182,12 +187,12 @@ Future<void> showHaveBindDialog(BuildContext context) async {
|
|||||||
0.rpx, 93.rpx, 0.rpx, 0.rpx),
|
0.rpx, 93.rpx, 0.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'蓝牙绑定.无法绑定'.tr,
|
'蓝牙绑定.无法绑定'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -244,14 +249,12 @@ Future<void> showHaveBindDialog(BuildContext context) async {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'蓝牙绑定.知道了'.tr,
|
'蓝牙绑定.知道了'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
width: 17.rpx,
|
width: 17.rpx,
|
||||||
@@ -299,7 +302,7 @@ void showLoadingDialog(BuildContext context, {String? title}) {
|
|||||||
// 0.rpx, 93.rpx, 0.rpx, 0.rpx),
|
// 0.rpx, 93.rpx, 0.rpx, 0.rpx),
|
||||||
// child: Text(
|
// child: Text(
|
||||||
// '蓝牙绑定.无法绑定'.tr,
|
// '蓝牙绑定.无法绑定'.tr,
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Inter',
|
// fontFamily: 'Inter',
|
||||||
// fontSize: 30.rpx,
|
// fontSize: 30.rpx,
|
||||||
// letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
@@ -382,12 +385,12 @@ Widget _buildCheckboxRow(
|
|||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: mainText,
|
text: mainText,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isBindable)
|
if (isBindable)
|
||||||
TextSpan(
|
TextSpan(
|
||||||
@@ -453,12 +456,12 @@ Widget _buildActionButton(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
text,
|
text,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -534,12 +537,12 @@ void showConfirmDialog(
|
|||||||
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -577,15 +580,13 @@ void showConfirmDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.否".tr,
|
"蓝牙绑定.否".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize:
|
||||||
fontFamily: 'Inter',
|
AppConstants().normal_text_fontSize,
|
||||||
fontSize:
|
letterSpacing: 0.0,
|
||||||
AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -615,15 +616,13 @@ void showConfirmDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.是".tr,
|
"蓝牙绑定.是".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize:
|
||||||
fontFamily: 'Inter',
|
AppConstants().normal_text_fontSize,
|
||||||
fontSize:
|
letterSpacing: 0.0,
|
||||||
AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -713,12 +712,12 @@ void showSingleConfirmDialog(
|
|||||||
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -757,15 +756,12 @@ void showSingleConfirmDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
confirmText,
|
confirmText,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -848,12 +844,12 @@ void showWifiDialog(
|
|||||||
EdgeInsetsDirectional.fromSTEB(0.rpx, 40.rpx, 0, 0),
|
EdgeInsetsDirectional.fromSTEB(0.rpx, 40.rpx, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -895,15 +891,12 @@ void showWifiDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.连接".tr,
|
"蓝牙绑定.连接".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -984,14 +977,12 @@ Future<void> showTipDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'蓝牙绑定.知道了'.tr,
|
'蓝牙绑定.知道了'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1073,14 +1064,12 @@ Future<void> showUnBindTipDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'继续'.tr,
|
'继续'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1119,14 +1108,12 @@ Future<void> showUnBindTipDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'下次再说'.tr,
|
'下次再说'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -768,16 +768,14 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
|||||||
0) {
|
0) {
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -787,16 +785,14 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
|||||||
.statusContext.value = "";
|
.statusContext.value = "";
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -804,16 +800,14 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
|||||||
2) {
|
2) {
|
||||||
return Text(
|
return Text(
|
||||||
'重新校准'.tr,
|
'重新校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Container();
|
return Container();
|
||||||
|
|||||||
@@ -875,17 +875,14 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
//todo 颜色
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
//todo 颜色
|
fontFamily: 'Inter',
|
||||||
color:
|
fontSize:
|
||||||
themeController.currentColor.sc3,
|
AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
width: 17.rpx,
|
width: 17.rpx,
|
||||||
|
|||||||
@@ -770,16 +770,14 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
|
|||||||
0) {
|
0) {
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -789,16 +787,14 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
|
|||||||
.statusContext.value = "";
|
.statusContext.value = "";
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -806,16 +802,14 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
|
|||||||
2) {
|
2) {
|
||||||
return Text(
|
return Text(
|
||||||
'重新校准'.tr,
|
'重新校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Container();
|
return Container();
|
||||||
@@ -1058,7 +1052,6 @@ class _CalibrationPersonPageState extends State<CalibrationPersonPage> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
onFailure: (res) {},
|
onFailure: (res) {},
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,12 +69,12 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'已分享'.tr,
|
'已分享'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -133,8 +133,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
width: 100.rpx,
|
width: 100.rpx,
|
||||||
height: 80.rpx,
|
height: 80.rpx,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(context)
|
color: Colors.white,
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: AlignmentDirectional(-1, 0),
|
alignment: AlignmentDirectional(-1, 0),
|
||||||
@@ -147,23 +146,17 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText: '输入关键字'.tr,
|
hintText: '输入关键字'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -183,8 +176,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(context)
|
Colors.white,
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -194,8 +186,7 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(context)
|
Colors.white,
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -205,13 +196,11 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
fillColor: themeController
|
fillColor: themeController
|
||||||
.currentColor.sc22,
|
.currentColor.sc22,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
@@ -271,15 +260,12 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
.withOpacity(0.08), // 可选点击反馈色
|
.withOpacity(0.08), // 可选点击反馈色
|
||||||
child: Text(
|
child: Text(
|
||||||
'搜索'.tr,
|
'搜索'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: stringToColor("#333333"), //固定
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
stringToColor("#333333"), //固定
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
@@ -369,12 +355,11 @@ class _DeviceShareListPageState extends State<DeviceShareListPage> {
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color: FlutterFlowTheme.of(context)
|
color: Colors.white,
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor: stringToColor("#16C89F"),
|
activeColor: stringToColor("#16C89F"),
|
||||||
checkColor:
|
// checkColor:
|
||||||
FlutterFlowTheme.of(context).info,
|
// FlutterFlowTheme.of(context).info,
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Text(
|
Text(
|
||||||
|
|||||||
@@ -62,12 +62,12 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'设备分享'.tr,
|
'设备分享'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -94,14 +94,12 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
|||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
child: Text(
|
child: Text(
|
||||||
'要分享的设备'.tr,
|
'要分享的设备'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -132,15 +130,12 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
|||||||
Text(
|
Text(
|
||||||
'主设备'.tr +
|
'主设备'.tr +
|
||||||
"${device['person']?['name'] == null ? '未命名'.tr : device['person']['name']}",
|
"${device['person']?['name'] == null ? '未命名'.tr : device['person']['name']}",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 20.rpx)),
|
].divide(SizedBox(width: 20.rpx)),
|
||||||
),
|
),
|
||||||
@@ -202,21 +197,17 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
hintText: '请输入对方手机号或邮箱'.tr,
|
hintText: '请输入对方手机号或邮箱'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
hintStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -233,27 +224,23 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
),
|
),
|
||||||
focusedErrorBorder: OutlineInputBorder(
|
focusedErrorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
),
|
),
|
||||||
filled: true,
|
filled: true,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor: themeController.currentColor.sc3,
|
cursorColor: themeController.currentColor.sc3,
|
||||||
// validator: _model.textController1Validator
|
// validator: _model.textController1Validator
|
||||||
@@ -281,33 +268,29 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
|||||||
TextSpan(
|
TextSpan(
|
||||||
text:
|
text:
|
||||||
'${deviceShareController.code.value == 1 ? "邀请成功".tr : "邀请失败".tr}',
|
'${deviceShareController.code.value == 1 ? "邀请成功".tr : "邀请失败".tr}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: deviceShareController
|
||||||
letterSpacing: 0.0,
|
.code.value ==
|
||||||
color: deviceShareController
|
1
|
||||||
.code.value ==
|
? themeController
|
||||||
1
|
.currentColor.sc2
|
||||||
? themeController
|
: themeController
|
||||||
.currentColor.sc2
|
.currentColor.sc9,
|
||||||
: themeController
|
),
|
||||||
.currentColor.sc9,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text:
|
text:
|
||||||
'${deviceShareController.msg}',
|
'${deviceShareController.msg}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc9,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc9,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -354,15 +337,13 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'发送邀请'.tr,
|
'发送邀请'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize, // 自定义字体大小
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize, // 自定义字体大小
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -111,33 +111,26 @@ class _EPageState extends State<DeviceTypePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'绑定引导.说明标题'.tr,
|
'绑定引导.说明标题'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
fontWeight: FontWeight.w500,
|
||||||
.normal_text_fontSize,
|
color:
|
||||||
letterSpacing: 0.0,
|
stringToColor("#916d46"),
|
||||||
fontWeight:
|
),
|
||||||
FontWeight.w500,
|
|
||||||
color: stringToColor(
|
|
||||||
"#916d46"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'绑定引导.说明正文'.tr,
|
'绑定引导.说明正文'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
color:
|
||||||
.normal_text_fontSize,
|
stringToColor("#916d46"),
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#916d46"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
height: AppConstants()
|
height: AppConstants()
|
||||||
@@ -226,27 +219,23 @@ class _EPageState extends State<DeviceTypePage> {
|
|||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(context)
|
Colors.white,
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor:
|
activeColor:
|
||||||
stringToColor("#16C89F"),
|
stringToColor("#16C89F"),
|
||||||
checkColor:
|
// checkColor:
|
||||||
FlutterFlowTheme.of(context)
|
// FlutterFlowTheme.of(context)
|
||||||
.info,
|
// .info,
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Text(
|
Text(
|
||||||
'绑定引导.不再提示'.tr,
|
'绑定引导.不再提示'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -275,13 +264,11 @@ class _EPageState extends State<DeviceTypePage> {
|
|||||||
alignment: Alignment.center, // 居中对齐
|
alignment: Alignment.center, // 居中对齐
|
||||||
child: Text(
|
child: Text(
|
||||||
'确认'.tr,
|
'确认'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
@@ -334,12 +321,12 @@ class _EPageState extends State<DeviceTypePage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'设备列表'.tr,
|
'设备列表'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -429,12 +416,12 @@ class _EPageState extends State<DeviceTypePage> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -71,12 +71,12 @@ class _DeviceTypeListPageState extends State<DeviceTypeListPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'设备列表'.tr,
|
'设备列表'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -163,17 +163,19 @@ class _DeviceTypeListPageState extends State<DeviceTypeListPage> {
|
|||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
Expanded(child: Text(
|
Expanded(
|
||||||
title,
|
child: Text(
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
title,
|
||||||
fontFamily: 'Inter',
|
style: TextStyle(
|
||||||
color: themeController.currentColor.sc3,
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
fontSize: 30.rpx,
|
||||||
),
|
letterSpacing: 0.0,
|
||||||
maxLines: 1,
|
),
|
||||||
overflow: TextOverflow.ellipsis,
|
maxLines: 1,
|
||||||
),),
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
),
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
// child: Image.asset(
|
// child: Image.asset(
|
||||||
|
|||||||
@@ -158,13 +158,12 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'wifi页.标题'.tr,
|
'wifi页.标题'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
fontFamily: 'Readex Pro',
|
||||||
fontFamily: 'Readex Pro',
|
color: themeController.currentColor.sc3,
|
||||||
color: themeController.currentColor.sc3,
|
letterSpacing: 0,
|
||||||
letterSpacing: 0,
|
fontSize: 30.rpx,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 14.rpx,
|
width: 14.rpx,
|
||||||
@@ -235,13 +234,11 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'下一步'.tr,
|
'下一步'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Inter Tight',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter Tight',
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -375,15 +372,13 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'可用WLAN'.tr,
|
'可用WLAN'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color:
|
||||||
letterSpacing: 0.0,
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -449,21 +444,19 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
InputDecoration(
|
InputDecoration(
|
||||||
isDense:
|
isDense:
|
||||||
true,
|
true,
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle:
|
||||||
context)
|
TextStyle(
|
||||||
.labelMedium
|
fontFamily:
|
||||||
.override(
|
'Inter',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Inter',
|
26.rpx,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
26.rpx,
|
0.0,
|
||||||
letterSpacing:
|
),
|
||||||
0.0,
|
|
||||||
),
|
|
||||||
hintText:
|
hintText:
|
||||||
'蓝牙绑定.输入wifi密码'
|
'蓝牙绑定.输入wifi密码'
|
||||||
.tr,
|
.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
hintStyle: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -503,8 +496,6 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -516,8 +507,6 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -527,9 +516,7 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
),
|
),
|
||||||
filled:
|
filled:
|
||||||
false,
|
false,
|
||||||
fillColor: FlutterFlowTheme.of(
|
fillColor: Colors.white,
|
||||||
context)
|
|
||||||
.secondaryBackground,
|
|
||||||
suffixIcon:
|
suffixIcon:
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap:
|
onTap:
|
||||||
@@ -553,7 +540,7 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -684,18 +671,13 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
wifiItem['ssid'] ?? '',
|
wifiItem['ssid'] ?? '',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 30.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 30.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController
|
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (blueteethBindController
|
if (blueteethBindController
|
||||||
.selectWifi.value ==
|
.selectWifi.value ==
|
||||||
@@ -815,15 +797,13 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'刷新'.tr,
|
'刷新'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1102,7 +1082,8 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
// text: "4g设备配置wifi提示".tr,
|
// text: "4g设备配置wifi提示".tr,
|
||||||
// textColor: themeController.currentColor.sc9,
|
// textColor: themeController.currentColor.sc9,
|
||||||
// );
|
// );
|
||||||
updateDeviceBindStatus(blueteethBindController.currentDeviceMac!.value);
|
updateDeviceBindStatus(
|
||||||
|
blueteethBindController.currentDeviceMac!.value);
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
TopSlideNotification.show(
|
TopSlideNotification.show(
|
||||||
context,
|
context,
|
||||||
@@ -1162,7 +1143,7 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateDeviceBindStatus(String mac) {
|
void updateDeviceBindStatus(String mac) {
|
||||||
String serviceAddress = ServiceConstant.service_address;
|
String serviceAddress = ServiceConstant.service_address;
|
||||||
String serviceName = ServiceConstant.server_service;
|
String serviceName = ServiceConstant.server_service;
|
||||||
String serviceApi = ServiceConstant.user_setting;
|
String serviceApi = ServiceConstant.user_setting;
|
||||||
@@ -1179,8 +1160,8 @@ class _WifiPageState extends State<WifiPage> {
|
|||||||
"type": type,
|
"type": type,
|
||||||
"mac": mac,
|
"mac": mac,
|
||||||
"wifi": true,
|
"wifi": true,
|
||||||
"celibration":res.data['celibration'],
|
"celibration": res.data['celibration'],
|
||||||
"person_info":res.data['person_info'],
|
"person_info": res.data['person_info'],
|
||||||
"time": DateTime.now().millisecondsSinceEpoch,
|
"time": DateTime.now().millisecondsSinceEpoch,
|
||||||
};
|
};
|
||||||
requestWithLog(
|
requestWithLog(
|
||||||
|
|||||||
@@ -99,13 +99,12 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'wifi页.标题'.tr,
|
'wifi页.标题'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
fontFamily: 'Readex Pro',
|
||||||
fontFamily: 'Readex Pro',
|
color: themeController.currentColor.sc3,
|
||||||
color: themeController.currentColor.sc3,
|
letterSpacing: 0,
|
||||||
letterSpacing: 0,
|
fontSize: 30.rpx,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 14.rpx,
|
width: 14.rpx,
|
||||||
@@ -178,13 +177,11 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'完成'.tr,
|
'完成'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Inter Tight',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter Tight',
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -318,15 +315,13 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'可用WLAN'.tr,
|
'可用WLAN'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color:
|
||||||
letterSpacing: 0.0,
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -392,21 +387,19 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
InputDecoration(
|
InputDecoration(
|
||||||
isDense:
|
isDense:
|
||||||
true,
|
true,
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle:
|
||||||
context)
|
TextStyle(
|
||||||
.labelMedium
|
fontFamily:
|
||||||
.override(
|
'Inter',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Inter',
|
26.rpx,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
26.rpx,
|
0.0,
|
||||||
letterSpacing:
|
),
|
||||||
0.0,
|
|
||||||
),
|
|
||||||
hintText:
|
hintText:
|
||||||
'蓝牙绑定.输入wifi密码'
|
'蓝牙绑定.输入wifi密码'
|
||||||
.tr,
|
.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
hintStyle: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -446,8 +439,6 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -459,8 +450,6 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -470,9 +459,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
),
|
),
|
||||||
filled:
|
filled:
|
||||||
false,
|
false,
|
||||||
fillColor: FlutterFlowTheme.of(
|
fillColor: Colors.white,
|
||||||
context)
|
|
||||||
.secondaryBackground,
|
|
||||||
suffixIcon:
|
suffixIcon:
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap:
|
onTap:
|
||||||
@@ -496,7 +483,7 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -627,18 +614,13 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
wifiItem['ssid'] ?? '',
|
wifiItem['ssid'] ?? '',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 30.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 30.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController
|
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (blueteethBindController
|
if (blueteethBindController
|
||||||
.selectWifi.value ==
|
.selectWifi.value ==
|
||||||
@@ -764,15 +746,13 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'刷新'.tr,
|
'刷新'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1125,8 +1105,8 @@ class _WifiPagePersonState extends State<WifiPagePerson> {
|
|||||||
"type": type,
|
"type": type,
|
||||||
"mac": mac,
|
"mac": mac,
|
||||||
"wifi": true,
|
"wifi": true,
|
||||||
"celibration":res.data['celibration'],
|
"celibration": res.data['celibration'],
|
||||||
"person_info":res.data['person_info'],
|
"person_info": res.data['person_info'],
|
||||||
"time": DateTime.now().millisecondsSinceEpoch,
|
"time": DateTime.now().millisecondsSinceEpoch,
|
||||||
};
|
};
|
||||||
requestWithLog(
|
requestWithLog(
|
||||||
|
|||||||
@@ -151,16 +151,14 @@ class _EPageState extends State<LoginPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'登录页.欢迎使用太和e护'.tr,
|
'登录页.欢迎使用太和e护'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 48.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 48.rpx,
|
//todo 颜色
|
||||||
letterSpacing: 0.0,
|
color:
|
||||||
//todo 颜色
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -178,16 +176,14 @@ class _EPageState extends State<LoginPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'登录页.科技睡眠 洞悉万千'.tr,
|
'登录页.科技睡眠 洞悉万千'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
//todo 颜色
|
||||||
letterSpacing: 0.0,
|
color:
|
||||||
//todo 颜色
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -205,16 +201,14 @@ class _EPageState extends State<LoginPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'139****0733',
|
'139****0733',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 48.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 48.rpx,
|
//todo 颜色
|
||||||
letterSpacing: 0.0,
|
color:
|
||||||
//todo 颜色
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -260,17 +254,15 @@ class _EPageState extends State<LoginPage> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
'登录页.本机号码一键登录/注册'.tr,
|
'登录页.本机号码一键登录/注册'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
//todo 颜色
|
||||||
.override(
|
color: themeController
|
||||||
//todo 颜色
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
@@ -350,15 +342,12 @@ class _EPageState extends State<LoginPage> {
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color:
|
color: Colors.white,
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor:
|
activeColor:
|
||||||
stringToColor("#FF9F66"),
|
stringToColor("#FF9F66"),
|
||||||
checkColor:
|
checkColor:
|
||||||
FlutterFlowTheme.of(context)
|
Colors.white,
|
||||||
.info,
|
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -377,81 +366,63 @@ class _EPageState extends State<LoginPage> {
|
|||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议1'.tr,
|
text: '登录页.协议1'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
color: Colors
|
||||||
letterSpacing: 0.0,
|
.white, // 可以调整为你想要的颜色
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
color: Colors
|
|
||||||
.white, // 可以调整为你想要的颜色
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议2'.tr,
|
text: '登录页.协议2'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#FF9F66"),
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#FF9F66"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议3'.tr,
|
text: '登录页.协议3'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
color: Colors
|
||||||
letterSpacing: 0.0,
|
.white, // 可以调整为你想要的颜色
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
color: Colors
|
|
||||||
.white, // 可以调整为你想要的颜色
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议4'.tr,
|
text: '登录页.协议4'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#FF9F66"),
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#FF9F66"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议5'.tr,
|
text: '登录页.协议5'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
color: Colors
|
||||||
letterSpacing: 0.0,
|
.white, // 可以调整为你想要的颜色
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
color: Colors
|
|
||||||
.white, // 可以调整为你想要的颜色
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议6'.tr,
|
text: '登录页.协议6'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#FF9F66"),
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#FF9F66"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -482,14 +453,12 @@ class _EPageState extends State<LoginPage> {
|
|||||||
0, 0, 0, 36.rpx),
|
0, 0, 0, 36.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'登录页.其他登录方式'.tr,
|
'登录页.其他登录方式'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
|||||||
@@ -153,15 +153,13 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'登录页.欢迎使用太和e护'.tr,
|
'登录页.欢迎使用太和e护'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 48.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 48.rpx,
|
color:
|
||||||
letterSpacing: 0.0,
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -179,15 +177,13 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'登录页.科技睡眠 洞悉万千'.tr,
|
'登录页.科技睡眠 洞悉万千'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color:
|
||||||
letterSpacing: 0.0,
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -237,25 +233,19 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle: FlutterFlowTheme
|
labelStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText: '其他手机登录页.输入内容'.tr,
|
hintText: '其他手机登录页.输入内容'.tr,
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
@@ -281,10 +271,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
errorBorder:
|
errorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: Colors.red,
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -295,9 +282,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(
|
Colors.red,
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -305,20 +290,15 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
8.rpx),
|
8.rpx),
|
||||||
),
|
),
|
||||||
filled: false,
|
filled: false,
|
||||||
fillColor: FlutterFlowTheme
|
fillColor: Colors.white,
|
||||||
.of(context)
|
),
|
||||||
.secondaryBackground,
|
style: TextStyle(
|
||||||
|
fontFamily: 'Inter',
|
||||||
|
fontSize: 26.rpx,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
color: themeController
|
||||||
|
.currentColor.sc3,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Inter',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
cursorColor: themeController
|
cursorColor: themeController
|
||||||
.currentColor.sc3,
|
.currentColor.sc3,
|
||||||
// validator: _model
|
// validator: _model
|
||||||
@@ -378,26 +358,20 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle: FlutterFlowTheme
|
labelStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText:
|
hintText:
|
||||||
'其他手机登录页.输入验证码'.tr,
|
'其他手机登录页.输入验证码'.tr,
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
@@ -423,10 +397,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
errorBorder:
|
errorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color: Colors.red,
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -437,9 +408,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(
|
Colors.red,
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -450,16 +419,13 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
fillColor:
|
fillColor:
|
||||||
Colors.transparent,
|
Colors.transparent,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
cursorColor: themeController
|
cursorColor: themeController
|
||||||
.currentColor.sc3,
|
.currentColor.sc3,
|
||||||
// validator: _model
|
// validator: _model
|
||||||
@@ -667,16 +633,14 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'其他手机登录页.登录'.tr,
|
'其他手机登录页.登录'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
width: 17.rpx,
|
width: 17.rpx,
|
||||||
@@ -729,15 +693,12 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color:
|
color: Colors.white,
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor:
|
activeColor:
|
||||||
stringToColor("#FF9F66"), //固定
|
stringToColor("#FF9F66"), //固定
|
||||||
checkColor:
|
checkColor:
|
||||||
FlutterFlowTheme.of(context)
|
Colors.white,
|
||||||
.info,
|
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
@@ -756,81 +717,63 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议1'.tr,
|
text: '登录页.协议1'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 20.rpx,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议2'.tr,
|
text: '登录页.协议2'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 20.rpx,
|
||||||
fontFamily: 'Inter',
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#FF9F66"),
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#FF9F66"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议3'.tr,
|
text: '登录页.协议3'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 20.rpx,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议4'.tr,
|
text: '登录页.协议4'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 20.rpx,
|
||||||
fontFamily: 'Inter',
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#FF9F66"),
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#FF9F66"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议5'.tr,
|
text: '登录页.协议5'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 20.rpx,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '登录页.协议6'.tr,
|
text: '登录页.协议6'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
letterSpacing: 0.0,
|
||||||
.override(
|
fontSize: 20.rpx,
|
||||||
fontFamily: 'Inter',
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#FF9F66"),
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#FF9F66"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -861,14 +804,12 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
|||||||
0, 0, 0, 36.rpx),
|
0, 0, 0, 36.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'登录页.其他登录方式'.tr,
|
'登录页.其他登录方式'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
|
|||||||
@@ -54,12 +54,12 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
// '实时监测结果通知'.tr,
|
// '实时监测结果通知'.tr,
|
||||||
"${messageInfo['data']['title']}",
|
"${messageInfo['data']['title']}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -144,12 +144,12 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
getMessageStatus(messageInfo['status']),
|
getMessageStatus(messageInfo['status']),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -170,12 +170,12 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
label.tr,
|
label.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -192,12 +192,12 @@ class _MessageWidgetWidgetState extends State<MessageWidgetWidget> {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
"${value}",
|
"${value}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ class _HomePageState extends State<MainPageBBottomChange>
|
|||||||
// Text('报告'),
|
// Text('报告'),
|
||||||
// RegisterPage(),
|
// RegisterPage(),
|
||||||
// ShareDeviceWidget(),
|
// ShareDeviceWidget(),
|
||||||
DeviceListPage(),
|
// DeviceListPage(),
|
||||||
|
MhtSleepReportPage(),
|
||||||
// FindPasswordPage(),
|
// FindPasswordPage(),
|
||||||
// Smys(),
|
// Smys(),
|
||||||
MattressControlPage(),
|
MattressControlPage(),
|
||||||
|
|||||||
@@ -40,12 +40,12 @@ class _EPageState extends State<EPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'小e'.tr,
|
'小e'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
|
|||||||
@@ -55,12 +55,12 @@ class _FollowPageState extends State<FollowPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'关注我们'.tr,
|
'关注我们'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -74,7 +74,7 @@ class _FollowPageState extends State<FollowPage> {
|
|||||||
actions: [],
|
actions: [],
|
||||||
centerTitle: false,
|
centerTitle: false,
|
||||||
),
|
),
|
||||||
|
|
||||||
body: SafeArea(
|
body: SafeArea(
|
||||||
top: true,
|
top: true,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
|||||||
@@ -57,12 +57,12 @@ class _HelpPageState extends State<HelpPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'操作说明'.tr,
|
'操作说明'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
|
|||||||
@@ -292,17 +292,12 @@ class _HomePageState extends State<HomePage> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'首页.登录'.tr,
|
'首页.登录'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter Tight',
|
||||||
.titleSmall
|
color: themeController
|
||||||
.override(
|
.currentColor.sc19,
|
||||||
fontFamily:
|
letterSpacing: 0.0,
|
||||||
'Inter Tight',
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc19,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -470,17 +465,15 @@ class _HomePageState extends State<HomePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'首页.已关联体征监测设备'.tr,
|
'首页.已关联体征监测设备'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.title_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.title_text_fontSize,
|
//todo 颜色
|
||||||
letterSpacing: 0.0,
|
color: themeController
|
||||||
//todo 颜色
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
return Padding(
|
return Padding(
|
||||||
@@ -489,17 +482,14 @@ class _HomePageState extends State<HomePage> {
|
|||||||
0, 4.rpx, 0.rpx, 0.rpx),
|
0, 4.rpx, 0.rpx, 0.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
"${deviceController.bindDeviceNum.value}",
|
"${deviceController.bindDeviceNum.value}",
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.title_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
color: themeController
|
||||||
.title_text_fontSize,
|
.currentColor.sc8,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc8,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
@@ -607,18 +597,14 @@ class _HomePageState extends State<HomePage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'首页.扫一扫绑定'.tr,
|
'首页.扫一扫绑定'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
color: themeController
|
||||||
.bodyMedium
|
.currentColor.sc19,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController
|
fontSize: AppConstants()
|
||||||
.currentColor
|
.normal_text_fontSize,
|
||||||
.sc19,
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -705,19 +691,15 @@ class _HomePageState extends State<HomePage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'首页.蓝牙绑定'.tr,
|
'首页.蓝牙绑定'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
//todo 颜色
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc19,
|
||||||
//todo 颜色
|
fontFamily: 'Inter',
|
||||||
color: themeController
|
fontSize: AppConstants()
|
||||||
.currentColor
|
.normal_text_fontSize,
|
||||||
.sc19,
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
width: 17.rpx,
|
width: 17.rpx,
|
||||||
@@ -777,63 +759,50 @@ class _HomePageState extends State<HomePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'首页.提示标题'.tr,
|
'首页.提示标题'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
fontWeight: FontWeight.w600,
|
||||||
.normal_text_fontSize,
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#916D46"), //固定
|
||||||
fontWeight:
|
),
|
||||||
FontWeight.w600,
|
|
||||||
color: stringToColor(
|
|
||||||
"#916D46"), //固定
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'首页.提示内容1'.tr,
|
'首页.提示内容1'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
//todo 配置颜色
|
||||||
.normal_text_fontSize,
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#916D46"), //固定
|
||||||
//todo 配置颜色
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#916D46"), //固定
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'首页.提示内容2'.tr,
|
'首页.提示内容2'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
color: stringToColor(
|
||||||
.normal_text_fontSize,
|
"#916D46"), //固定
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#916D46"), //固定
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'首页.提示内容3'.tr,
|
'首页.提示内容3'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
//todo 配置颜色
|
||||||
.normal_text_fontSize,
|
color: stringToColor(
|
||||||
letterSpacing: 0.0,
|
"#916D46"), //固定
|
||||||
//todo 配置颜色
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#916D46"), //固定
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
height: AppConstants()
|
height: AppConstants()
|
||||||
|
|||||||
@@ -126,23 +126,19 @@ class _MessagePageState extends State<MessagePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'体征消息'.tr,
|
'体征消息'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.title_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
color:
|
||||||
fontSize: AppConstants()
|
messageController
|
||||||
.title_text_fontSize,
|
.model.type ==
|
||||||
color: messageController
|
2
|
||||||
.model.type ==
|
? themeController
|
||||||
2
|
.currentColor.sc3
|
||||||
? themeController
|
: themeController
|
||||||
.currentColor
|
.currentColor.sc2,
|
||||||
.sc3
|
),
|
||||||
: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc2,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
return messageController.model
|
return messageController.model
|
||||||
@@ -189,23 +185,19 @@ class _MessagePageState extends State<MessagePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'系统消息'.tr,
|
'系统消息'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: AppConstants()
|
||||||
.override(
|
.title_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
color:
|
||||||
fontSize: AppConstants()
|
messageController
|
||||||
.title_text_fontSize,
|
.model.type ==
|
||||||
color: messageController
|
1
|
||||||
.model.type ==
|
? themeController
|
||||||
1
|
.currentColor.sc3
|
||||||
? themeController
|
: themeController
|
||||||
.currentColor
|
.currentColor.sc2,
|
||||||
.sc3
|
),
|
||||||
: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc2,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
return messageController.model
|
return messageController.model
|
||||||
@@ -261,6 +253,7 @@ class _MessagePageState extends State<MessagePage> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
SizedBox(height: 17.rpx),
|
SizedBox(height: 17.rpx),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -207,17 +207,14 @@ class _MinePageState extends State<MinePage> {
|
|||||||
.user!.nick_name ??
|
.user!.nick_name ??
|
||||||
'未命名'.tr)
|
'未命名'.tr)
|
||||||
: "未命名".tr,
|
: "未命名".tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.title_text_fontSize,
|
||||||
.currentColor.sc3,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.title_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
login == 1
|
login == 1
|
||||||
@@ -241,19 +238,15 @@ class _MinePageState extends State<MinePage> {
|
|||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
: "未知数据".tr,
|
: "未知数据".tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
].divide(SizedBox(height: 20.rpx)),
|
].divide(SizedBox(height: 20.rpx)),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 35.rpx)),
|
].divide(SizedBox(width: 35.rpx)),
|
||||||
@@ -277,16 +270,14 @@ class _MinePageState extends State<MinePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
login == 1 ? '编辑'.tr : '我的.去登录'.tr,
|
login == 1 ? '编辑'.tr : '我的.去登录'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: themeController
|
||||||
fontFamily: 'Inter',
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontSize: AppConstants()
|
||||||
.currentColor.sc3,
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding:
|
padding:
|
||||||
@@ -370,17 +361,14 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'我的.我的设备'.tr,
|
'我的.我的设备'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.title_text_fontSize,
|
||||||
.currentColor.sc3,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.title_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -446,17 +434,14 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'我的.设备报修'.tr,
|
'我的.设备报修'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.title_text_fontSize,
|
||||||
.currentColor.sc3,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.title_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -522,17 +507,14 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'我的.操作说明'.tr,
|
'我的.操作说明'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.title_text_fontSize,
|
||||||
.currentColor.sc3,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.title_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -598,17 +580,14 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'我的.关注我们'.tr,
|
'我的.关注我们'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.title_text_fontSize,
|
||||||
.currentColor.sc3,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.title_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -680,17 +659,14 @@ class _MinePageState extends State<MinePage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'我的.当前版本'.tr,
|
'我的.当前版本'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.title_text_fontSize,
|
||||||
.currentColor.sc3,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.title_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -699,16 +675,12 @@ class _MinePageState extends State<MinePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'V1.0.2506.06',
|
'V1.0.2506.06',
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: Color(0xFFD9E3EB),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
),
|
||||||
Color(0xFFD9E3EB),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
'assets/img/icon/arrow_right.svg',
|
'assets/img/icon/arrow_right.svg',
|
||||||
|
|||||||
@@ -88,14 +88,12 @@ class _HomeDeviceTypeState extends State<HomeDeviceType> {
|
|||||||
48.rpx, 24.rpx, 0, 0),
|
48.rpx, 24.rpx, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'选择类型',
|
'选择类型',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
_buildControlCard(context),
|
_buildControlCard(context),
|
||||||
@@ -150,7 +148,7 @@ Widget _buildDeviceItem(BuildContext context, Map<String, dynamic> dtype) {
|
|||||||
child: Container(
|
child: Container(
|
||||||
height: 221.rpx,
|
height: 221.rpx,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(context).secondaryBackground,
|
// color: FlutterFlowTheme.of(context).secondaryBackground,
|
||||||
borderRadius: BorderRadius.circular(6),
|
borderRadius: BorderRadius.circular(6),
|
||||||
),
|
),
|
||||||
constraints: BoxConstraints(minHeight: 221.rpx),
|
constraints: BoxConstraints(minHeight: 221.rpx),
|
||||||
@@ -178,11 +176,11 @@ Widget _buildDeviceItem(BuildContext context, Map<String, dynamic> dtype) {
|
|||||||
padding: EdgeInsets.fromLTRB(0, 59.rpx, 0, 0),
|
padding: EdgeInsets.fromLTRB(0, 59.rpx, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
dtype["name"],
|
dtype["name"],
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 35.rpx),
|
SizedBox(height: 35.rpx),
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
|
|
||||||
import 'package:ef/ef.dart';
|
import 'package:ef/ef.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||||
@@ -130,7 +129,6 @@ class LanguagePage extends GetView<MHLanguageController> {
|
|||||||
borderRadius: BorderRadius.circular(4),
|
borderRadius: BorderRadius.circular(4),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
unselectedWidgetColor: FlutterFlowTheme.of(context).alternate,
|
|
||||||
),
|
),
|
||||||
child: Obx(() {
|
child: Obx(() {
|
||||||
return Checkbox(
|
return Checkbox(
|
||||||
@@ -149,10 +147,10 @@ class LanguagePage extends GetView<MHLanguageController> {
|
|||||||
shape: CircleBorder(),
|
shape: CircleBorder(),
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 2,
|
width: 2,
|
||||||
color: FlutterFlowTheme.of(context).alternate,
|
// color: FlutterFlowTheme.of(context).alternate,
|
||||||
),
|
),
|
||||||
activeColor: Color(0XFF6BFDAC),
|
activeColor: Color(0XFF6BFDAC),
|
||||||
checkColor: FlutterFlowTheme.of(context).info,
|
// checkColor: FlutterFlowTheme.of(context).info,
|
||||||
);
|
);
|
||||||
})),
|
})),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -54,12 +54,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
// '实时监测结果通知'.tr,
|
// '实时监测结果通知'.tr,
|
||||||
"${messageInfo['data']['title']}",
|
"${messageInfo['data']['title']}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -144,12 +144,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
getMessageStatus(messageInfo['status']),
|
getMessageStatus(messageInfo['status']),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -170,12 +170,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
label.tr,
|
label.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -192,12 +192,12 @@ class _MhMessageListWidgetState extends State<MhMessageListWidget> {
|
|||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
"${value}",
|
"${value}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -67,14 +67,12 @@ class ShareUserWidget extends GetView {
|
|||||||
alignment: const AlignmentDirectional(-1, 0),
|
alignment: const AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${info['userName']}',
|
'${info['userName']}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -87,14 +85,12 @@ class ShareUserWidget extends GetView {
|
|||||||
: info['opType'] == 2
|
: info['opType'] == 2
|
||||||
? '仅允许对方查看该设备'
|
? '仅允许对方查看该设备'
|
||||||
: '',
|
: '',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFFC8CBD2),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 20.rpx,
|
||||||
color: const Color(0xFFC8CBD2),
|
letterSpacing: 0.0,
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -109,7 +105,7 @@ class ShareUserWidget extends GetView {
|
|||||||
// maxWidth: 130,
|
// maxWidth: 130,
|
||||||
// ),
|
// ),
|
||||||
// decoration: BoxDecoration(
|
// decoration: BoxDecoration(
|
||||||
// color: FlutterFlowTheme.of(context).secondaryBackground,
|
//
|
||||||
// ),
|
// ),
|
||||||
// child: Row(
|
// child: Row(
|
||||||
// mainAxisSize: MainAxisSize.max,
|
// mainAxisSize: MainAxisSize.max,
|
||||||
@@ -119,7 +115,7 @@ class ShareUserWidget extends GetView {
|
|||||||
// alignment: const AlignmentDirectional(0, 0),
|
// alignment: const AlignmentDirectional(0, 0),
|
||||||
// child: Text(
|
// child: Text(
|
||||||
// ' ',
|
// ' ',
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Readex Pro',
|
// fontFamily: 'Readex Pro',
|
||||||
// color: const Color(0xFF333333),
|
// color: const Color(0xFF333333),
|
||||||
// fontSize: 13,
|
// fontSize: 13,
|
||||||
|
|||||||
@@ -93,14 +93,12 @@ class AddressListPage extends GetView<AddressListController> {
|
|||||||
31, 27, 0, 26),
|
31, 27, 0, 26),
|
||||||
child: Text(
|
child: Text(
|
||||||
'我的地址',
|
'我的地址',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: AppFontsize.title_size,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.title_size,
|
fontWeight: FontWeight.w600,
|
||||||
letterSpacing: 0,
|
),
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -186,14 +184,12 @@ class AddressListPage extends GetView<AddressListController> {
|
|||||||
SizedBox(width: 10), // 加号和文字间距
|
SizedBox(width: 10), // 加号和文字间距
|
||||||
Text(
|
Text(
|
||||||
'添加新地址',
|
'添加新地址',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF85F5FF),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.normal_text_size,
|
||||||
color: Color(0xFF85F5FF),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -108,15 +108,13 @@ class AddressModuleWidget extends GetView {
|
|||||||
element != null &&
|
element != null &&
|
||||||
element.isNotEmpty)
|
element.isNotEmpty)
|
||||||
.join(' '),
|
.join(' '),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF333333),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize:
|
||||||
color: Color(0xFF333333),
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -133,15 +131,13 @@ class AddressModuleWidget extends GetView {
|
|||||||
? '无详细地址'
|
? '无详细地址'
|
||||||
: addressListController.model
|
: addressListController.model
|
||||||
.addressList[index]['detail'],
|
.addressList[index]['detail'],
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF333333),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize:
|
||||||
color: Color(0xFF333333),
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -151,15 +147,13 @@ class AddressModuleWidget extends GetView {
|
|||||||
child: Text(
|
child: Text(
|
||||||
'${addressListController.model.addressList[index]['name']} ' +
|
'${addressListController.model.addressList[index]['name']} ' +
|
||||||
'${addressListController.model.addressList[index]['phone']} ',
|
'${addressListController.model.addressList[index]['phone']} ',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF333333),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize:
|
||||||
color: Color(0xFF333333),
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -208,12 +202,11 @@ class AddressModuleWidget extends GetView {
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color: FlutterFlowTheme.of(context)
|
color: Colors.white,
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor: const Color(0xFFd3b684),
|
activeColor: const Color(0xFFd3b684),
|
||||||
checkColor:
|
// checkColor:
|
||||||
FlutterFlowTheme.of(context).info,
|
// FlutterFlowTheme.of(context).info,
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -238,14 +231,12 @@ class AddressModuleWidget extends GetView {
|
|||||||
alignment: AlignmentDirectional(1, 0),
|
alignment: AlignmentDirectional(1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'编辑',
|
'编辑',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.small_text_size,
|
||||||
color: Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.small_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'报修成功标题'.tr,
|
'报修成功标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
@@ -131,9 +131,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'报修成功'.tr,
|
'报修成功'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
@@ -230,9 +228,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'查看报修历史'.tr,
|
'查看报修历史'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
color: Color(0xFF011D33),
|
color: Color(0xFF011D33),
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: AppConstants()
|
fontSize: AppConstants()
|
||||||
@@ -276,9 +272,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'绑定成功.返回'.tr,
|
'绑定成功.返回'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style:TextStyle(
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
color: Color(0xFF011D33),
|
color: Color(0xFF011D33),
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: AppConstants()
|
fontSize: AppConstants()
|
||||||
@@ -327,7 +321,7 @@ class _ApplyRepairSuccessState extends State<ApplyRepairSuccess> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFC2CED7),
|
color: const Color(0xFFC2CED7),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
|
|||||||
@@ -149,19 +149,15 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
0, -1),
|
0, -1),
|
||||||
child: Text(
|
child: Text(
|
||||||
'选择需要报修的设备',
|
'选择需要报修的设备',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
fontSize: AppFontsize
|
||||||
'Readex Pro',
|
.title_size,
|
||||||
letterSpacing: 0,
|
color: Colors
|
||||||
fontSize:
|
.white // 加粗文字
|
||||||
AppFontsize
|
),
|
||||||
.title_size,
|
|
||||||
color: Colors
|
|
||||||
.white // 加粗文字
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -203,7 +199,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'已绑设备',
|
'已绑设备',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -271,18 +267,21 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
300,
|
300,
|
||||||
height:
|
height:
|
||||||
56,
|
56,
|
||||||
searchHintTextStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
searchHintTextStyle:
|
||||||
fontFamily: 'Readex Pro',
|
TextStyle(
|
||||||
letterSpacing: 0,
|
fontFamily: 'Readex Pro',
|
||||||
),
|
letterSpacing: 0,
|
||||||
searchTextStyle: FlutterFlowTheme.of(context).bodyMedium.override(
|
),
|
||||||
fontFamily: 'Readex Pro',
|
searchTextStyle:
|
||||||
letterSpacing: 0,
|
TextStyle(
|
||||||
),
|
fontFamily: 'Readex Pro',
|
||||||
textStyle: FlutterFlowTheme.of(context).bodyMedium.override(
|
letterSpacing: 0,
|
||||||
fontFamily: 'Readex Pro',
|
),
|
||||||
letterSpacing: 0,
|
textStyle:
|
||||||
),
|
TextStyle(
|
||||||
|
fontFamily: 'Readex Pro',
|
||||||
|
letterSpacing: 0,
|
||||||
|
),
|
||||||
hintText:
|
hintText:
|
||||||
'请选择绑定设备',
|
'请选择绑定设备',
|
||||||
searchHintText:
|
searchHintText:
|
||||||
@@ -290,7 +289,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
icon:
|
icon:
|
||||||
Icon(
|
Icon(
|
||||||
Icons.keyboard_arrow_down_rounded,
|
Icons.keyboard_arrow_down_rounded,
|
||||||
color: FlutterFlowTheme.of(context).secondaryText,
|
color: Colors.white,
|
||||||
size: 24,
|
size: 24,
|
||||||
),
|
),
|
||||||
// fillColor:
|
// fillColor:
|
||||||
@@ -298,7 +297,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
elevation:
|
elevation:
|
||||||
2,
|
2,
|
||||||
borderColor:
|
borderColor:
|
||||||
FlutterFlowTheme.of(context).alternate,
|
Colors.white,
|
||||||
borderWidth:
|
borderWidth:
|
||||||
0,
|
0,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -355,7 +354,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备系列',
|
'设备系列',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -409,18 +408,20 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
false,
|
false,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle:
|
||||||
.labelMedium
|
TextStyle(
|
||||||
.override(
|
fontFamily:
|
||||||
fontFamily: 'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing: 0,
|
letterSpacing:
|
||||||
),
|
0,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
),
|
||||||
.labelMedium
|
hintStyle:
|
||||||
.override(
|
TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily:
|
||||||
letterSpacing: 0,
|
'Readex Pro',
|
||||||
),
|
letterSpacing:
|
||||||
|
0,
|
||||||
|
),
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -476,15 +477,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
10,
|
10,
|
||||||
18),
|
18),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
letterSpacing:
|
||||||
'Readex Pro',
|
0,
|
||||||
letterSpacing:
|
),
|
||||||
0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
@@ -525,7 +524,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'产品型号',
|
'产品型号',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -579,18 +578,20 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
false,
|
false,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle:
|
||||||
.labelMedium
|
TextStyle(
|
||||||
.override(
|
fontFamily:
|
||||||
fontFamily: 'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing: 0,
|
letterSpacing:
|
||||||
),
|
0,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
),
|
||||||
.labelMedium
|
hintStyle:
|
||||||
.override(
|
TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily:
|
||||||
letterSpacing: 0,
|
'Readex Pro',
|
||||||
),
|
letterSpacing:
|
||||||
|
0,
|
||||||
|
),
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -646,15 +647,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
10,
|
10,
|
||||||
18),
|
18),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
letterSpacing:
|
||||||
'Readex Pro',
|
0,
|
||||||
letterSpacing:
|
),
|
||||||
0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
@@ -695,7 +694,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'序列号',
|
'序列号',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -749,18 +748,20 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
false,
|
false,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle:
|
||||||
.labelMedium
|
TextStyle(
|
||||||
.override(
|
fontFamily:
|
||||||
fontFamily: 'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing: 0,
|
letterSpacing:
|
||||||
),
|
0,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
),
|
||||||
.labelMedium
|
hintStyle:
|
||||||
.override(
|
TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily:
|
||||||
letterSpacing: 0,
|
'Readex Pro',
|
||||||
),
|
letterSpacing:
|
||||||
|
0,
|
||||||
|
),
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -816,15 +817,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
10,
|
10,
|
||||||
18),
|
18),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
letterSpacing:
|
||||||
'Readex Pro',
|
0,
|
||||||
letterSpacing:
|
),
|
||||||
0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
@@ -987,20 +986,17 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
0, 0),
|
0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'上传设备故障照片',
|
'上传设备故障照片',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: const Color(
|
||||||
fontFamily:
|
0xFF9EA4B7),
|
||||||
'Readex Pro',
|
fontSize:
|
||||||
color: const Color(
|
AppFontsize
|
||||||
0xFF9EA4B7),
|
.normal_text_size,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
AppFontsize
|
0,
|
||||||
.normal_text_size,
|
),
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1027,9 +1023,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
minHeight: 250,
|
minHeight: 250,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(
|
color: Colors.white,
|
||||||
context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize:
|
mainAxisSize:
|
||||||
@@ -1053,9 +1047,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
height: 21,
|
height: 21,
|
||||||
decoration:
|
decoration:
|
||||||
BoxDecoration(
|
BoxDecoration(
|
||||||
color: FlutterFlowTheme
|
color: Colors.white,
|
||||||
.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery
|
width: MediaQuery
|
||||||
@@ -1066,9 +1058,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
height: 21,
|
height: 21,
|
||||||
decoration:
|
decoration:
|
||||||
BoxDecoration(
|
BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(
|
color: Colors.white,
|
||||||
context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize:
|
mainAxisSize:
|
||||||
@@ -1085,45 +1075,42 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
.issue_img!
|
.issue_img!
|
||||||
.length
|
.length
|
||||||
.toString(),
|
.toString(),
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'/',
|
'/',
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'3',
|
'3',
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -1153,18 +1140,14 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
),
|
),
|
||||||
decoration:
|
decoration:
|
||||||
BoxDecoration(
|
BoxDecoration(
|
||||||
color: FlutterFlowTheme
|
color: Colors.white,
|
||||||
.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
decoration:
|
decoration:
|
||||||
BoxDecoration(
|
BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(
|
color: Colors.white,
|
||||||
context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Obx(() => ListView(
|
child: Obx(() => ListView(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
@@ -1225,18 +1208,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
.fromSTEB(0, 15, 0, 16),
|
.fromSTEB(0, 15, 0, 16),
|
||||||
child: Text(
|
child: Text(
|
||||||
'请描述一下您的问题',
|
'请描述一下您的问题',
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
fontWeight: FontWeight.w600,
|
||||||
color: Colors.white,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
fontWeight:
|
|
||||||
FontWeight.w600,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1274,10 +1252,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
|
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: '问题描述(100个字以内)',
|
hintText: '问题描述(100个字以内)',
|
||||||
labelStyle: FlutterFlowTheme
|
labelStyle: TextStyle(
|
||||||
.of(context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: AppFontsize
|
fontSize: AppFontsize
|
||||||
@@ -1285,10 +1260,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
color: Color(
|
color: Color(
|
||||||
0XFF929699)),
|
0XFF929699)),
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: AppFontsize
|
fontSize: AppFontsize
|
||||||
@@ -1355,16 +1327,12 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
maxLines: 4,
|
maxLines: 4,
|
||||||
maxLength:
|
maxLength:
|
||||||
100, // ✅ 限制最多输入 100 字符
|
100, // ✅ 限制最多输入 100 字符
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1399,10 +1367,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
0, 48.rpx, 0, 48.rpx),
|
0, 48.rpx, 0, 48.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
'联系方式',
|
'联系方式',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
@@ -1467,7 +1432,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'联系人',
|
'联系人',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -1524,19 +1489,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
10,
|
10,
|
||||||
10,
|
10,
|
||||||
14),
|
14),
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0,
|
0,
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -1591,10 +1550,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
.circular(8),
|
.circular(8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -1643,7 +1599,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'手机号码',
|
'手机号码',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -1697,19 +1653,13 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
10,
|
10,
|
||||||
10,
|
10,
|
||||||
14),
|
14),
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0,
|
0,
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -1764,10 +1714,7 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
.circular(8),
|
.circular(8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -1875,14 +1822,12 @@ class ApplyRepairPage extends GetView<ApplyRepairController> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"提交申请",
|
"提交申请",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: stringToColor("#011D33"),
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: stringToColor("#011D33"),
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class BookDateWidget extends GetView<BookInfoController> {
|
|||||||
Flexible(
|
Flexible(
|
||||||
child: Text(
|
child: Text(
|
||||||
"${bookInfoController.model.datetimes![index]?['dayName']}",
|
"${bookInfoController.model.datetimes![index]?['dayName']}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
color: controller.model.datetimes_index == index
|
color: controller.model.datetimes_index == index
|
||||||
@@ -53,7 +53,7 @@ class BookDateWidget extends GetView<BookInfoController> {
|
|||||||
Flexible(
|
Flexible(
|
||||||
child: Text(
|
child: Text(
|
||||||
"${bookInfoController.model.datetimes![index]?['day']}",
|
"${bookInfoController.model.datetimes![index]?['day']}",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
color: controller.model.datetimes_index == index
|
color: controller.model.datetimes_index == index
|
||||||
|
|||||||
@@ -113,25 +113,21 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'${data["name"]}',
|
'${data["name"]}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
height: 1,
|
||||||
letterSpacing: 0,
|
color: Colors.white),
|
||||||
lineHeight: 1,
|
|
||||||
color: Colors.white),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'地址:${data["addressDetail"]}',
|
'地址:${data["addressDetail"]}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
height: 1,
|
||||||
letterSpacing: 0,
|
color: Color(0xFF929699)),
|
||||||
lineHeight: 1,
|
|
||||||
color: Color(0xFF929699)),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
height: 18.rpx,
|
height: 18.rpx,
|
||||||
@@ -145,13 +141,11 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Text(
|
child: Text(
|
||||||
'体验日期',
|
'体验日期',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
color: Colors.white),
|
||||||
letterSpacing: 0,
|
|
||||||
color: Colors.white),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Align(
|
// Align(
|
||||||
@@ -184,15 +178,13 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'体验时段',
|
'体验时段',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
color: Colors.white,
|
||||||
letterSpacing: 0,
|
// 设置加粗
|
||||||
color: Colors.white,
|
),
|
||||||
// 设置加粗
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Flexible(child: Obx(() {
|
Flexible(child: Obx(() {
|
||||||
return InkWell(
|
return InkWell(
|
||||||
@@ -234,31 +226,25 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
null
|
null
|
||||||
? "${controller.model.time_period?[controller.model.select_time_index!]?["timeStr"]}"
|
? "${controller.model.time_period?[controller.model.select_time_index!]?["timeStr"]}"
|
||||||
: '请选择时间',
|
: '请选择时间',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
fontSize: AppFontsize
|
||||||
fontFamily:
|
.normal_text_size,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
color: (controller
|
||||||
.normal_text_size,
|
.model
|
||||||
letterSpacing: 0,
|
.select_time_index ==
|
||||||
color: (controller
|
null)
|
||||||
.model
|
? stringToColor(
|
||||||
.select_time_index ==
|
'#D0D0D0')
|
||||||
null)
|
: Colors.white),
|
||||||
? stringToColor(
|
|
||||||
'#D0D0D0')
|
|
||||||
: Colors
|
|
||||||
.white),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Icon(
|
Icon(
|
||||||
Icons
|
Icons
|
||||||
.keyboard_arrow_down_sharp,
|
.keyboard_arrow_down_sharp,
|
||||||
color: FlutterFlowTheme.of(
|
color: Colors.white,
|
||||||
context)
|
|
||||||
.secondaryText,
|
|
||||||
size: 16,
|
size: 16,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -285,15 +271,13 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'体验人员',
|
'体验人员',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
color: Colors.white,
|
||||||
letterSpacing: 0,
|
// 设置加粗
|
||||||
color: Colors.white,
|
),
|
||||||
// 设置加粗
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Align(
|
child: Align(
|
||||||
@@ -328,29 +312,19 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
false,
|
false,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Readex Pro',
|
||||||
context)
|
fontSize: AppFontsize
|
||||||
.labelMedium
|
.normal_text_size,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '输入姓名',
|
hintText: '输入姓名',
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
color: Color(0xFF929699)),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
color: Color(
|
|
||||||
0xFF929699)),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -399,16 +373,11 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
EdgeInsets.symmetric(
|
EdgeInsets.symmetric(
|
||||||
vertical: 0),
|
vertical: 0),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
color: Colors.white),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
color:
|
|
||||||
Colors.white),
|
|
||||||
textAlign: TextAlign.end,
|
textAlign: TextAlign.end,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -436,15 +405,13 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'手机号',
|
'手机号',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
color: Colors.white,
|
||||||
letterSpacing: 0,
|
// 设置加粗
|
||||||
color: Colors.white,
|
),
|
||||||
// 设置加粗
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Align(
|
child: Align(
|
||||||
@@ -480,29 +447,19 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
keyboardType:
|
keyboardType:
|
||||||
TextInputType.phone,
|
TextInputType.phone,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Readex Pro',
|
||||||
context)
|
fontSize: AppFontsize
|
||||||
.labelMedium
|
.normal_text_size,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '输入手机号',
|
hintText: '输入手机号',
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
color: Color(0xFF929699)),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
color: Color(
|
|
||||||
0xFF929699)),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -551,16 +508,11 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
EdgeInsets.symmetric(
|
EdgeInsets.symmetric(
|
||||||
vertical: 0),
|
vertical: 0),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
color: Colors.white),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
color:
|
|
||||||
Colors.white),
|
|
||||||
textAlign: TextAlign.end,
|
textAlign: TextAlign.end,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -700,13 +652,12 @@ class BookInfoPage extends GetView<BookInfoController> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"提交预约",
|
"提交预约",
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
fontFamily: 'Readex Pro',
|
||||||
fontFamily: 'Readex Pro',
|
color: stringToColor("#011D33"),
|
||||||
color: stringToColor("#011D33"),
|
letterSpacing: 0,
|
||||||
letterSpacing: 0,
|
fontSize: 30.rpx,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -102,15 +102,13 @@ class BookSuccessPage extends GetView {
|
|||||||
alignment: const AlignmentDirectional(0, 0),
|
alignment: const AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'预约成功!',
|
'预约成功!',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
color: Colors.white,
|
||||||
fontSize: 30.rpx,
|
letterSpacing: 0,
|
||||||
color: Colors.white,
|
fontWeight: FontWeight.w600,
|
||||||
letterSpacing: 0,
|
),
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 30.rpx)),
|
].divide(SizedBox(height: 30.rpx)),
|
||||||
|
|||||||
@@ -58,12 +58,12 @@ void showBindDoubleDialog(
|
|||||||
EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
|
EdgeInsetsDirectional.fromSTEB(0.rpx, 93.rpx, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'蓝牙绑定.双人版绑定标题'.tr,
|
'蓝牙绑定.双人版绑定标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -250,14 +250,12 @@ Future<void> showHaveBindDialog(BuildContext context) async {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'知道了'.tr,
|
'知道了'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
width: 17.rpx,
|
width: 17.rpx,
|
||||||
@@ -305,7 +303,7 @@ void showLoadingDialog(BuildContext context, {String? title}) {
|
|||||||
// 0.rpx, 93.rpx, 0.rpx, 0.rpx),
|
// 0.rpx, 93.rpx, 0.rpx, 0.rpx),
|
||||||
// child: Text(
|
// child: Text(
|
||||||
// '蓝牙绑定.无法绑定'.tr,
|
// '蓝牙绑定.无法绑定'.tr,
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Inter',
|
// fontFamily: 'Inter',
|
||||||
// fontSize: 30.rpx,
|
// fontSize: 30.rpx,
|
||||||
// letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
@@ -388,12 +386,12 @@ Widget _buildCheckboxRow(
|
|||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: mainText,
|
text: mainText,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isBindable)
|
if (isBindable)
|
||||||
TextSpan(
|
TextSpan(
|
||||||
@@ -459,12 +457,12 @@ Widget _buildActionButton(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
text,
|
text,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -539,13 +537,13 @@ void showConfirmDialog(
|
|||||||
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: stringToColor("#333333"),
|
color: stringToColor("#333333"),
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -583,15 +581,13 @@ void showConfirmDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"否".tr,
|
"否".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize:
|
||||||
fontFamily: 'Inter',
|
AppConstants().normal_text_fontSize,
|
||||||
fontSize:
|
letterSpacing: 0.0,
|
||||||
AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -621,15 +617,13 @@ void showConfirmDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"是".tr,
|
"是".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize:
|
||||||
fontFamily: 'Inter',
|
AppConstants().normal_text_fontSize,
|
||||||
fontSize:
|
letterSpacing: 0.0,
|
||||||
AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -719,12 +713,12 @@ void showSingleConfirmDialog(
|
|||||||
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
33.rpx, 60.rpx, 33.rpx, 33.rpx),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -763,15 +757,12 @@ void showSingleConfirmDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
confirmText,
|
confirmText,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -854,12 +845,12 @@ void showWifiDialog(
|
|||||||
EdgeInsetsDirectional.fromSTEB(0.rpx, 20.rpx, 0, 0),
|
EdgeInsetsDirectional.fromSTEB(0.rpx, 20.rpx, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: stringToColor("#333333"),
|
color: stringToColor("#333333"),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -899,15 +890,12 @@ void showWifiDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"连接".tr,
|
"连接".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: Colors.white,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize:
|
),
|
||||||
AppConstants().normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -989,14 +977,12 @@ Future<void> showTipDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'知道了'.tr,
|
'知道了'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: stringToColor("#333333"),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: stringToColor("#333333"),
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1078,14 +1064,12 @@ Future<void> showUnBindTipDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'继续'.tr,
|
'继续'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -1124,14 +1108,12 @@ Future<void> showUnBindTipDialog(
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'下次再说'.tr,
|
'下次再说'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc3,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -295,14 +295,12 @@ class DeletedAccountPage extends GetView {
|
|||||||
iconPadding: const EdgeInsetsDirectional.fromSTEB(
|
iconPadding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
0, 0, 0, 0),
|
0, 0, 0, 0),
|
||||||
color: const Color(0xFFFF7159),
|
color: const Color(0xFFFF7159),
|
||||||
textStyle: FlutterFlowTheme.of(context)
|
textStyle: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.normal_text_size,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
borderSide: const BorderSide(
|
borderSide: const BorderSide(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
|
|||||||
@@ -226,7 +226,8 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
|||||||
text: response.msg!);
|
text: response.msg!);
|
||||||
if (response.code == HttpStatusCodes.ok) {
|
if (response.code == HttpStatusCodes.ok) {
|
||||||
//更新设备绑定流程
|
//更新设备绑定流程
|
||||||
Get.toNamed("/mHTwifiPage",arguments: widget.bleDevice);
|
Get.toNamed("/mHTwifiPage",
|
||||||
|
arguments: widget.bleDevice);
|
||||||
THapp bledevice = THapp(
|
THapp bledevice = THapp(
|
||||||
device: widget.bleDevice.scanResult.device);
|
device: widget.bleDevice.scanResult.device);
|
||||||
blueteethBindController.currentDevice = bledevice;
|
blueteethBindController.currentDevice = bledevice;
|
||||||
@@ -322,12 +323,12 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
device.name ?? '蓝牙绑定.默认设备名称'.tr,
|
device.name ?? '蓝牙绑定.默认设备名称'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Obx(() {
|
Obx(() {
|
||||||
if (blueteethBindController.currentDeviceMac.value ==
|
if (blueteethBindController.currentDeviceMac.value ==
|
||||||
@@ -350,77 +351,77 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.信号强度".tr + ':${device.rssi ?? '-'}dBm',
|
"蓝牙绑定.信号强度".tr + ':${device.rssi ?? '-'}dBm',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 40.rpx),
|
SizedBox(width: 40.rpx),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.SN".tr + ':${device.sn ?? '-'}',
|
"蓝牙绑定.SN".tr + ':${device.sn ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF5F9FD),
|
color: const Color(0xFFF5F9FD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.蓝牙地址".tr + ':${device.deviceId ?? '-'}',
|
"蓝牙绑定.蓝牙地址".tr + ':${device.deviceId ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.mac".tr + ':${device.mac ?? '-'}',
|
"蓝牙绑定.mac".tr + ':${device.mac ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.网络".tr +
|
"蓝牙绑定.网络".tr +
|
||||||
':${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
|
':${device.isOnline == true ? '蓝牙绑定.在线'.tr : '蓝牙绑定.离线'.tr}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(width: 145.rpx),
|
SizedBox(width: 145.rpx),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"蓝牙绑定.传感器".tr + ":",
|
"蓝牙绑定.传感器".tr + ":",
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFEBF2F8),
|
color: const Color(0xFFEBF2F8),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
|
device.bind == false ? '蓝牙绑定.可绑定'.tr : '蓝牙绑定.已被绑定'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: device.bind == false
|
color: device.bind == false
|
||||||
? const Color(0xFF1AD2B5)
|
? const Color(0xFF1AD2B5)
|
||||||
: themeController.currentColor.sc9,
|
: themeController.currentColor.sc9,
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -428,12 +429,12 @@ class _DeviceComponentWidgetState extends State<DeviceComponentWidget> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"版本".tr + '${device.version ?? '-'}',
|
"版本".tr + '${device.version ?? '-'}',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFF6FAFD),
|
color: const Color(0xFFF6FAFD),
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
height: 37.rpx,
|
height: 37.rpx,
|
||||||
|
|||||||
@@ -55,12 +55,12 @@ class DeviceInfoWidget extends GetView {
|
|||||||
Text(
|
Text(
|
||||||
deviceListController.model.deviceList[index]['name'] ??
|
deviceListController.model.deviceList[index]['name'] ??
|
||||||
'SWES系列 01号智能一键入眠床',
|
'SWES系列 01号智能一键入眠床',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
maxLines: 1, // 限制显示一行
|
maxLines: 1, // 限制显示一行
|
||||||
overflow: TextOverflow.ellipsis, // 超出部分显示省略号
|
overflow: TextOverflow.ellipsis, // 超出部分显示省略号
|
||||||
),
|
),
|
||||||
@@ -108,40 +108,31 @@ class DeviceInfoWidget extends GetView {
|
|||||||
.deviceList[
|
.deviceList[
|
||||||
index]['_id'] ??
|
index]['_id'] ??
|
||||||
''),
|
''),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Color(0xFFC8CBD2),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
height: 1),
|
||||||
color:
|
|
||||||
Color(0xFFC8CBD2),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
lineHeight: 1),
|
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text:
|
text:
|
||||||
' (${deviceListController.model.deviceList[index]['status'] ?? ''})',
|
' (${deviceListController.model.deviceList[index]['status'] ?? ''})',
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: deviceListController
|
||||||
.override(
|
.model
|
||||||
fontFamily:
|
.deviceList[
|
||||||
'Readex Pro',
|
index]
|
||||||
color: deviceListController
|
['status'] ==
|
||||||
.model
|
'在线'
|
||||||
.deviceList[index]
|
? Color(
|
||||||
[
|
0xFF07C160) // 在线的颜色
|
||||||
'status'] ==
|
: Color(
|
||||||
'在线'
|
0xFFEA7CA7), // 离线的颜色
|
||||||
? Color(
|
fontSize: 26.rpx,
|
||||||
0xFF07C160) // 在线的颜色
|
letterSpacing: 0,
|
||||||
: Color(
|
),
|
||||||
0xFFEA7CA7), // 离线的颜色
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -160,14 +151,12 @@ class DeviceInfoWidget extends GetView {
|
|||||||
.model.deviceList[index]
|
.model.deviceList[index]
|
||||||
['roomName'] ??
|
['roomName'] ??
|
||||||
''),
|
''),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFFC8CBD2),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Color(0xFFC8CBD2),
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
height: 1),
|
||||||
letterSpacing: 0,
|
|
||||||
lineHeight: 1),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -180,14 +169,12 @@ class DeviceInfoWidget extends GetView {
|
|||||||
?["status"]
|
?["status"]
|
||||||
?.toString() ??
|
?.toString() ??
|
||||||
''),
|
''),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFFC8CBD2),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Color(0xFFC8CBD2),
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
height: 1),
|
||||||
letterSpacing: 0,
|
|
||||||
lineHeight: 1),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
].divide(SizedBox(height: 36.rpx)),
|
].divide(SizedBox(height: 36.rpx)),
|
||||||
@@ -207,14 +194,12 @@ class DeviceInfoWidget extends GetView {
|
|||||||
text: '控制',
|
text: '控制',
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
color: Color(0XFF85F5FF),
|
color: Color(0XFF85F5FF),
|
||||||
textStyle: FlutterFlowTheme.of(context)
|
textStyle: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 28.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 28.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
@@ -282,15 +267,13 @@ class DeviceInfoWidget extends GetView {
|
|||||||
if (device['bind_type'] == 1)
|
if (device['bind_type'] == 1)
|
||||||
Text(
|
Text(
|
||||||
'已分享:',
|
'已分享:',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize:
|
||||||
fontFamily: 'Readex Pro',
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
color: Colors.white,
|
||||||
letterSpacing: 0,
|
),
|
||||||
color: Colors.white,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (device['bind_type'] == 1)
|
if (device['bind_type'] == 1)
|
||||||
Padding(
|
Padding(
|
||||||
@@ -303,42 +286,36 @@ class DeviceInfoWidget extends GetView {
|
|||||||
['shareNum'] ??
|
['shareNum'] ??
|
||||||
0)
|
0)
|
||||||
.toString(),
|
.toString(),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF85F5FF),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize:
|
||||||
color: Color(0xFF85F5FF),
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (device['bind_type'] == 1)
|
if (device['bind_type'] == 1)
|
||||||
Text(
|
Text(
|
||||||
'人',
|
'人',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize:
|
||||||
fontFamily: 'Readex Pro',
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
color: Colors.white,
|
||||||
letterSpacing: 0,
|
),
|
||||||
color: Colors.white,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (device['bind_type'] == 2)
|
if (device['bind_type'] == 2)
|
||||||
Text(
|
Text(
|
||||||
'来自',
|
'来自',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize:
|
||||||
fontFamily: 'Readex Pro',
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
color: Colors.white,
|
||||||
letterSpacing: 0,
|
),
|
||||||
color: Colors.white,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (device['bind_type'] == 2)
|
if (device['bind_type'] == 2)
|
||||||
Padding(
|
Padding(
|
||||||
@@ -347,28 +324,24 @@ class DeviceInfoWidget extends GetView {
|
|||||||
5, 0, 5, 0),
|
5, 0, 5, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'${device['suname']?.length > 5 ? device['suname'].substring(0, 5) + '...' : device['suname']}',
|
'${device['suname']?.length > 5 ? device['suname'].substring(0, 5) + '...' : device['suname']}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF85F5FF),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize:
|
||||||
color: Color(0xFF85F5FF),
|
AppFontsize.normal_text_size,
|
||||||
fontSize: AppFontsize
|
letterSpacing: 0,
|
||||||
.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (device['bind_type'] == 2)
|
if (device['bind_type'] == 2)
|
||||||
Text(
|
Text(
|
||||||
'的分享',
|
'的分享',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 21.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 21.rpx,
|
color: Colors.white,
|
||||||
letterSpacing: 0,
|
),
|
||||||
color: Colors.white,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -407,14 +380,12 @@ class DeviceInfoWidget extends GetView {
|
|||||||
SizedBox(width: 5),
|
SizedBox(width: 5),
|
||||||
Text(
|
Text(
|
||||||
'睡眠报告',
|
'睡眠报告',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 21.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 21.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -67,12 +67,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'绑定成功.标题'.tr,
|
'绑定成功.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -185,14 +185,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'绑定成功.绑定成功'.tr,
|
'绑定成功.绑定成功'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 48.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 48.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -206,14 +204,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'绑定成功.分享标题'.tr,
|
'绑定成功.分享标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -227,14 +223,12 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
|
|||||||
alignment: AlignmentDirectional(-1, 0),
|
alignment: AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'绑定成功.分享内容'.tr,
|
'绑定成功.分享内容'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc4,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -299,15 +293,13 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'绑定成功.立即分享'.tr,
|
'绑定成功.立即分享'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: stringToColor("#003058"),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: stringToColor("#003058"),
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize, // 自定义字体大小
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize, // 自定义字体大小
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
@@ -384,15 +376,13 @@ class _MHTBindDeviceSuccessState extends State<MHTBindDeviceSuccess> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'绑定成功.返回'.tr,
|
'绑定成功.返回'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: stringToColor("#003058"),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: stringToColor("#003058"),
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize, // 自定义字体大小
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize, // 自定义字体大小
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 17.rpx)),
|
].divide(SizedBox(width: 17.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -76,12 +76,12 @@ class _MHTBindDeviceTypePageState extends State<MHTBindDeviceTypePage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'添加设备'.tr,
|
'添加设备'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
|
|||||||
@@ -111,13 +111,14 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _startScanning() async {
|
void _startScanning() async {
|
||||||
if (!mounted || isScanning || !mhtBlueToothController.shouldScan.value) return;
|
if (!mounted || isScanning || !mhtBlueToothController.shouldScan.value)
|
||||||
|
return;
|
||||||
|
|
||||||
_scanSubscription?.cancel();
|
_scanSubscription?.cancel();
|
||||||
var bluetoothState = await FlutterBluePlus.isOn;
|
var bluetoothState = await FlutterBluePlus.isOn;
|
||||||
mhtBlueToothController.model.bluetooth = bluetoothState;
|
mhtBlueToothController.model.bluetooth = bluetoothState;
|
||||||
mhtBlueToothController.updateAll();
|
mhtBlueToothController.updateAll();
|
||||||
|
|
||||||
if (!bluetoothState && !_isDialogShowing) {
|
if (!bluetoothState && !_isDialogShowing) {
|
||||||
_isDialogShowing = true;
|
_isDialogShowing = true;
|
||||||
mhtBlueToothController.model.blueRawData = [];
|
mhtBlueToothController.model.blueRawData = [];
|
||||||
@@ -139,7 +140,8 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
if (!mounted) return;
|
if (!mounted) return;
|
||||||
|
|
||||||
final signalThreshold = mhtBlueToothController.model.singal!;
|
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 filteredResults = results.where((r) {
|
||||||
final localName = r.advertisementData.localName;
|
final localName = r.advertisementData.localName;
|
||||||
@@ -280,12 +282,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'添加设备'.tr,
|
'添加设备'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -337,14 +339,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
false)
|
false)
|
||||||
? "等待扫描".tr
|
? "等待扫描".tr
|
||||||
: '扫描中'.tr,
|
: '扫描中'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: stringToColor("#003058"),
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: stringToColor("#003058"),
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -372,22 +372,18 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'最小信号强度'.tr,
|
'最小信号强度'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: stringToColor("#003058"),
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: stringToColor("#003058"),
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Obx(() {
|
child: Obx(() {
|
||||||
return Slider(
|
return Slider(
|
||||||
activeColor: Color(0xFF1FCC9B),
|
activeColor: Color(0xFF1FCC9B),
|
||||||
inactiveColor:
|
inactiveColor: Colors.white,
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.alternate,
|
|
||||||
min: -100,
|
min: -100,
|
||||||
max: 50,
|
max: 50,
|
||||||
value:
|
value:
|
||||||
@@ -406,14 +402,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
Obx(() {
|
Obx(() {
|
||||||
return Text(
|
return Text(
|
||||||
'${mhtBlueToothController.model.singal!.toInt()}',
|
'${mhtBlueToothController.model.singal!.toInt()}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: stringToColor("#003058"),
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: stringToColor("#003058"),
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
].divide(SizedBox(width: 30.rpx)),
|
].divide(SizedBox(width: 30.rpx)),
|
||||||
@@ -456,8 +450,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
width: 100.rpx,
|
width: 100.rpx,
|
||||||
height: 90.rpx,
|
height: 90.rpx,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(context)
|
color: Colors.white,
|
||||||
.secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment:
|
alignment:
|
||||||
@@ -474,23 +467,17 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText: '检索设备'.tr,
|
hintText: '检索设备'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
@@ -513,9 +500,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color: Colors.red,
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -525,9 +510,7 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
color: Colors.red,
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -538,14 +521,11 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
fillColor: themeController
|
fillColor: themeController
|
||||||
.currentColor.sc22,
|
.currentColor.sc22,
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
cursorColor:
|
cursorColor:
|
||||||
stringToColor("#003058"),
|
stringToColor("#003058"),
|
||||||
),
|
),
|
||||||
@@ -579,14 +559,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'搜索'.tr,
|
'搜索'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: stringToColor("#333333"),
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: stringToColor("#333333"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
@@ -609,14 +587,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
return Text(
|
return Text(
|
||||||
'匹配出的外围设备'.tr +
|
'匹配出的外围设备'.tr +
|
||||||
"(${mhtBlueToothController.model.deviceDataStatus!.length})",
|
"(${mhtBlueToothController.model.deviceDataStatus!.length})",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -690,14 +666,12 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
'蓝牙绑定提示'.tr,
|
'蓝牙绑定提示'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: themeController.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: themeController.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 23.rpx)),
|
].divide(SizedBox(width: 23.rpx)),
|
||||||
@@ -714,4 +688,4 @@ class _MHTBlueteethDevicePageState extends State<MHTBlueteethDevicePage> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -593,8 +593,8 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
|
|||||||
padding: EdgeInsetsDirectional.fromSTEB(
|
padding: EdgeInsetsDirectional.fromSTEB(
|
||||||
100.rpx, 0.rpx, 100.rpx, 60.rpx),
|
100.rpx, 0.rpx, 100.rpx, 60.rpx),
|
||||||
child: CustomCard(
|
child: CustomCard(
|
||||||
borderRadius: AppConstants()
|
borderRadius:
|
||||||
.normal_container_radius,
|
AppConstants().normal_container_radius,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
if (deviceCalibrationController.flag.value ==
|
if (deviceCalibrationController.flag.value ==
|
||||||
2) {
|
2) {
|
||||||
@@ -763,16 +763,13 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
|
|||||||
0) {
|
0) {
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: stringToColor("#003058"),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color:
|
fontSize: AppConstants()
|
||||||
stringToColor("#003058"),
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -782,16 +779,14 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
|
|||||||
.statusContext.value = "";
|
.statusContext.value = "";
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -799,16 +794,14 @@ class _MHTCalibrationPageCopyState extends State<MHTCalibrationPageCopy> {
|
|||||||
2) {
|
2) {
|
||||||
return Text(
|
return Text(
|
||||||
'重新校准'.tr,
|
'重新校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Container();
|
return Container();
|
||||||
|
|||||||
@@ -645,29 +645,24 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
|
|||||||
currentCalibrationStep.value == 2) {
|
currentCalibrationStep.value == 2) {
|
||||||
return Text(
|
return Text(
|
||||||
'开始另外一侧校准'.tr,
|
'开始另外一侧校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: stringToColor("#003058"),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color:
|
fontSize: AppConstants()
|
||||||
stringToColor("#003058"),
|
.normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Text(
|
return Text(
|
||||||
'开始校准'.tr,
|
'开始校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: stringToColor("#003058"),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: stringToColor("#003058"),
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -677,16 +672,14 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
|
|||||||
.statusContext.value = "";
|
.statusContext.value = "";
|
||||||
return Text(
|
return Text(
|
||||||
'校准中...'.tr,
|
'校准中...'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
color: themeController
|
fontFamily: 'Inter',
|
||||||
.currentColor.sc3,
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (deviceCalibrationController
|
if (deviceCalibrationController
|
||||||
@@ -694,15 +687,13 @@ class _MHTCalibrationPageState extends State<MHTCalibrationPage> {
|
|||||||
2) {
|
2) {
|
||||||
return Text(
|
return Text(
|
||||||
'重新校准'.tr,
|
'重新校准'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: stringToColor("#003058"),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: stringToColor("#003058"),
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Container();
|
return Container();
|
||||||
|
|||||||
@@ -144,13 +144,12 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'wifi配置'.tr,
|
'wifi配置'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
fontFamily: 'Readex Pro',
|
||||||
fontFamily: 'Readex Pro',
|
color: themeController.currentColor.sc3,
|
||||||
color: themeController.currentColor.sc3,
|
letterSpacing: 0,
|
||||||
letterSpacing: 0,
|
fontSize: 30.rpx,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 14.rpx,
|
width: 14.rpx,
|
||||||
@@ -217,13 +216,11 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'下一步'.tr,
|
'下一步'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Inter Tight',
|
||||||
.override(
|
color: stringToColor("#003058"),
|
||||||
fontFamily: 'Inter Tight',
|
letterSpacing: 0.0,
|
||||||
color: stringToColor("#003058"),
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -355,15 +352,13 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'可用WLAN'.tr,
|
'可用WLAN'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color:
|
||||||
letterSpacing: 0.0,
|
themeController.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@@ -429,21 +424,19 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
InputDecoration(
|
InputDecoration(
|
||||||
isDense:
|
isDense:
|
||||||
true,
|
true,
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle:
|
||||||
context)
|
TextStyle(
|
||||||
.labelMedium
|
fontFamily:
|
||||||
.override(
|
'Inter',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Inter',
|
26.rpx,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
26.rpx,
|
0.0,
|
||||||
letterSpacing:
|
),
|
||||||
0.0,
|
|
||||||
),
|
|
||||||
hintText:
|
hintText:
|
||||||
'输入wifi密码'
|
'输入wifi密码'
|
||||||
.tr,
|
.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
hintStyle: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -483,8 +476,6 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -496,8 +487,6 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1
|
width: 1
|
||||||
.rpx,
|
.rpx,
|
||||||
),
|
),
|
||||||
@@ -533,7 +522,7 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Inter',
|
'Inter',
|
||||||
fontSize: 26
|
fontSize: 26
|
||||||
@@ -630,18 +619,13 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
wifiItem['ssid'] ?? '',
|
wifiItem['ssid'] ?? '',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 30.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 30.rpx,
|
.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController
|
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
if (blueteethBindController
|
if (blueteethBindController
|
||||||
.selectWifi.value ==
|
.selectWifi.value ==
|
||||||
@@ -767,15 +751,13 @@ class _MHTWifiPageState extends State<MHTWifiPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'刷新'.tr,
|
'刷新'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
|
|||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Text(
|
child: Text(
|
||||||
'$str',
|
'$str',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -125,13 +125,11 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
|
|||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Text(
|
child: Text(
|
||||||
'设备信息',
|
'设备信息',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Colors.white,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
getInfoRow(
|
getInfoRow(
|
||||||
@@ -173,14 +171,12 @@ class DevicePeopleInfo extends GetView<PeopleInfoController> {
|
|||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料${index == 0 ? "A" : "B"}',
|
'人员资料${index == 0 ? "A" : "B"}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 32.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 32.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (location_.isNotEmpty)
|
if (location_.isNotEmpty)
|
||||||
|
|||||||
@@ -113,26 +113,22 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'将以下设备分享给您的家人或朋友 ',
|
'将以下设备分享给您的家人或朋友 ',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
height: 1,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
lineHeight: 1,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'设备ID:${deviceController.model.deviceMain['mac']}',
|
'设备ID:${deviceController.model.deviceMain['mac']}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFF6BFDAC),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: const Color(0xFF6BFDAC),
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
height: 1),
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 65.rpx)),
|
].divide(SizedBox(height: 65.rpx)),
|
||||||
),
|
),
|
||||||
@@ -157,16 +153,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
|
|||||||
controller: _phoneController,
|
controller: _phoneController,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
hintText: '请输入对方手机号',
|
hintText: '请输入对方手机号',
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color:
|
||||||
.override(
|
const Color(0xFF929699),
|
||||||
fontFamily:
|
fontSize: 36.rpx,
|
||||||
'Readex Pro',
|
),
|
||||||
color: const Color(
|
|
||||||
0xFF929699),
|
|
||||||
fontSize: 36.rpx,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
const UnderlineInputBorder(
|
const UnderlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
@@ -195,15 +187,11 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
|
|||||||
const EdgeInsets.only(
|
const EdgeInsets.only(
|
||||||
left: 10, bottom: 5),
|
left: 10, bottom: 5),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: 36.rpx,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 36.rpx,
|
|
||||||
),
|
|
||||||
validator: (value) {
|
validator: (value) {
|
||||||
if (value == null ||
|
if (value == null ||
|
||||||
value.isEmpty) {
|
value.isEmpty) {
|
||||||
@@ -439,16 +427,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'允许对方控制该设备',
|
'允许对方控制该设备',
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily:
|
letterSpacing: 0.0,
|
||||||
'Readex Pro',
|
),
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Radio<int>(
|
Radio<int>(
|
||||||
value: 1,
|
value: 1,
|
||||||
@@ -494,16 +478,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'仅允许对方查看该设备',
|
'仅允许对方查看该设备',
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily:
|
letterSpacing: 0.0,
|
||||||
'Readex Pro',
|
),
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Radio<int>(
|
Radio<int>(
|
||||||
value: 2,
|
value: 2,
|
||||||
@@ -556,15 +536,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
|
|||||||
EdgeInsetsDirectional.fromSTEB(
|
EdgeInsetsDirectional.fromSTEB(
|
||||||
30.rpx, 0, 30.rpx, 0),
|
30.rpx, 0, 30.rpx, 0),
|
||||||
color: const Color(0xFF84F5FF),
|
color: const Color(0xFF84F5FF),
|
||||||
textStyle:
|
textStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.titleSmall
|
color: Color(0xFF011D33),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0.0,
|
||||||
color: Color(0xFF011D33),
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(50),
|
BorderRadius.circular(50),
|
||||||
@@ -596,14 +573,12 @@ class ShareDeviceWidget extends GetView<MHDeviceShareController> {
|
|||||||
.fromSTEB(14, 0, 0, 16),
|
.fromSTEB(14, 0, 0, 16),
|
||||||
child: Text(
|
child: Text(
|
||||||
'已分享用户',
|
'已分享用户',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
height: 1),
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -181,10 +181,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'地址信息',
|
'地址信息',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
color: Colors
|
color: Colors
|
||||||
@@ -273,7 +270,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color: FlutterFlowTheme.of(context).secondaryText,
|
color:Colors.white,
|
||||||
),
|
),
|
||||||
activeColor: const Color(0xFF84F5FF),
|
activeColor: const Color(0xFF84F5FF),
|
||||||
checkColor: Color(0xFF011D33),
|
checkColor: Color(0xFF011D33),
|
||||||
@@ -285,10 +282,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'默认',
|
'默认',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize:
|
fontSize:
|
||||||
@@ -349,10 +343,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'收件人',
|
'收件人',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize:
|
fontSize:
|
||||||
@@ -400,19 +391,13 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
0,
|
0,
|
||||||
10,
|
10,
|
||||||
18),
|
18),
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0,
|
0,
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -471,10 +456,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
8),
|
8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme
|
style:TextStyle(
|
||||||
.of(context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -529,10 +511,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'手机号',
|
'手机号',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize:
|
fontSize:
|
||||||
@@ -582,19 +561,13 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
0,
|
0,
|
||||||
10,
|
10,
|
||||||
18),
|
18),
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0,
|
0,
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -653,10 +626,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
8),
|
8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -719,10 +689,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
// },
|
// },
|
||||||
child: Text(
|
child: Text(
|
||||||
'所在地区',
|
'所在地区',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize:
|
fontSize:
|
||||||
@@ -777,11 +744,11 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
false,
|
false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
contentPadding: const EdgeInsetsDirectional.fromSTEB(10, 0, 10, 18),
|
contentPadding: const EdgeInsetsDirectional.fromSTEB(10, 0, 10, 18),
|
||||||
labelStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
labelStyle: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
hintStyle: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
@@ -847,15 +814,12 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
Icon(
|
Icon(
|
||||||
Icons.arrow_forward_ios,
|
Icons.arrow_forward_ios,
|
||||||
color:
|
color:
|
||||||
FlutterFlowTheme.of(context).secondaryText,
|
Colors.white,
|
||||||
size:
|
size:
|
||||||
12,
|
12,
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -918,7 +882,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'详细地址',
|
'详细地址',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style:TextStyle(
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
fontSize:
|
fontSize:
|
||||||
@@ -988,19 +952,13 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
10,
|
10,
|
||||||
10,
|
10,
|
||||||
10),
|
10),
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
0,
|
0,
|
||||||
),
|
),
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -1055,10 +1013,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
.circular(8),
|
.circular(8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
fontFamily:
|
||||||
'Readex Pro',
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing:
|
||||||
@@ -1147,9 +1102,7 @@ class EditAddressPage extends GetView<AddressController>
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"保存",
|
"保存",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: stringToColor("#011D33"),
|
color: stringToColor("#011D33"),
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
|
|
||||||
import 'package:ef/ef.dart';
|
import 'package:ef/ef.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||||
@@ -123,22 +122,18 @@ class _EditBedPageState extends State<EditBedPage> {
|
|||||||
contentPadding:
|
contentPadding:
|
||||||
const EdgeInsetsDirectional
|
const EdgeInsetsDirectional
|
||||||
.fromSTEB(10, 0, 10, 0),
|
.fromSTEB(10, 0, 10, 0),
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 36.rpx, // 设置输入文字大小
|
||||||
letterSpacing: 0,
|
color: Colors.white, // 设置输入文字颜色
|
||||||
fontSize: 36.rpx, // 设置输入文字大小
|
),
|
||||||
color: Colors.white, // 设置输入文字颜色
|
hintStyle: TextStyle(
|
||||||
),
|
fontFamily: 'Readex Pro',
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
letterSpacing: 0,
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 36.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
color: Color(0xFF929699),
|
|
||||||
fontSize: 36.rpx,
|
|
||||||
),
|
|
||||||
enabledBorder: UnderlineInputBorder(
|
enabledBorder: UnderlineInputBorder(
|
||||||
borderSide: const BorderSide(
|
borderSide: const BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -173,12 +168,10 @@ class _EditBedPageState extends State<EditBedPage> {
|
|||||||
BorderRadius.circular(8),
|
BorderRadius.circular(8),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily: 'Readex Pro',
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -55,12 +55,12 @@ class ExperienceStoreWidget extends GetView {
|
|||||||
child: Text(
|
child: Text(
|
||||||
// experienceStoreModel.name ?? '未命名',
|
// experienceStoreModel.name ?? '未命名',
|
||||||
data["name"] ?? '',
|
data["name"] ?? '',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -97,14 +97,12 @@ class ExperienceStoreWidget extends GetView {
|
|||||||
alignment: const AlignmentDirectional(-1, 0),
|
alignment: const AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'地址:${data["addressDetail"]}',
|
'地址:${data["addressDetail"]}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFF929699),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 20.rpx,
|
||||||
color: const Color(0xFF929699),
|
letterSpacing: 0,
|
||||||
fontSize: 20.rpx,
|
height: 1),
|
||||||
letterSpacing: 0,
|
|
||||||
lineHeight: 1),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -113,14 +111,12 @@ class ExperienceStoreWidget extends GetView {
|
|||||||
alignment: const AlignmentDirectional(-1, 0),
|
alignment: const AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'电话:${data["hotline"]}',
|
'电话:${data["hotline"]}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFF929699),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 20.rpx,
|
||||||
color: const Color(0xFF929699),
|
letterSpacing: 0,
|
||||||
fontSize: 20.rpx,
|
height: 1),
|
||||||
letterSpacing: 0,
|
|
||||||
lineHeight: 1),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -171,14 +167,12 @@ class ExperienceStoreWidget extends GetView {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'咨询',
|
'咨询',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.small_text_size,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.small_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(const SizedBox(width: 13)),
|
].divide(const SizedBox(width: 13)),
|
||||||
),
|
),
|
||||||
@@ -230,14 +224,12 @@ class ExperienceStoreWidget extends GetView {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'导航',
|
'导航',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.small_text_size,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.small_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(const SizedBox(width: 13)),
|
].divide(const SizedBox(width: 13)),
|
||||||
),
|
),
|
||||||
@@ -268,14 +260,12 @@ class ExperienceStoreWidget extends GetView {
|
|||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
0, 0, 0, 0),
|
0, 0, 0, 0),
|
||||||
color: Color(0xFF84F5FF),
|
color: Color(0xFF84F5FF),
|
||||||
textStyle: FlutterFlowTheme.of(context)
|
textStyle: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF011D33),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Color(0xFF011D33),
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
borderSide: const BorderSide(
|
borderSide: const BorderSide(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import 'package:flutterflow_ui/flutterflow_ui.dart';
|
|||||||
import 'package:vbvs_app/common/color/appConstants.dart';
|
import 'package:vbvs_app/common/color/appConstants.dart';
|
||||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||||
import 'package:vbvs_app/component/tool/CustomCard.dart';
|
import 'package:vbvs_app/component/tool/CustomCard.dart';
|
||||||
|
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||||
|
|
||||||
class HomeDeviceStausWidget extends StatefulWidget {
|
class HomeDeviceStausWidget extends StatefulWidget {
|
||||||
final deviceStatus;
|
final deviceStatus;
|
||||||
@@ -73,6 +74,7 @@ class _HomeDeviceStausWidgetState extends State<HomeDeviceStausWidget> {
|
|||||||
borderRadius: 10.rpx,
|
borderRadius: 10.rpx,
|
||||||
onTap: () {
|
onTap: () {
|
||||||
// 点击回调逻辑放这里
|
// 点击回调逻辑放这里
|
||||||
|
TopSlideNotification.show(context,text: "功能开发中...".tr);
|
||||||
},
|
},
|
||||||
colors:
|
colors:
|
||||||
AppConstants().mhtButtongradientColors, // 你原本没有渐变,单色即可
|
AppConstants().mhtButtongradientColors, // 你原本没有渐变,单色即可
|
||||||
|
|||||||
@@ -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/component/HomeDeviceWidget.dart';
|
||||||
import 'package:vbvs_app/pages/mh_page/homepage/controller/mht_home_controller.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/mht_new_sleep_report_page.dart';
|
||||||
|
import 'package:vbvs_app/pages/sleep_report/new_sleep_report_page.dart';
|
||||||
|
|
||||||
class MhtSleepReportPage extends StatefulWidget {
|
class MhtSleepReportPage extends StatefulWidget {
|
||||||
const MhtSleepReportPage({super.key});
|
const MhtSleepReportPage({super.key});
|
||||||
@@ -32,74 +33,13 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
|
|||||||
var formFieldController = FormFieldController<String>(null);
|
var formFieldController = FormFieldController<String>(null);
|
||||||
var personInfo = {}.obs;
|
var personInfo = {}.obs;
|
||||||
|
|
||||||
GlobalController gloablController = Get.find();
|
|
||||||
WeatherModelController weatherModelController = Get.find();
|
|
||||||
// var selectedDayIndex = (6).obs;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
if (userInfoController.model.login == 1) {
|
if (userInfoController.model.login == 1) {
|
||||||
//查询人员信息列表
|
//查询人员信息列表
|
||||||
deviceController.getPersonList();
|
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
|
@override
|
||||||
@@ -174,9 +114,6 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
|
|||||||
0.rpx, 40.rpx, 30.rpx, 10.rpx),
|
0.rpx, 40.rpx, 30.rpx, 10.rpx),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery.sizeOf(context).width,
|
width: MediaQuery.sizeOf(context).width,
|
||||||
// height:
|
|
||||||
// MediaQuery.sizeOf(context).height *
|
|
||||||
// 0.033,
|
|
||||||
constraints: BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
minHeight: 60.rpx,
|
minHeight: 60.rpx,
|
||||||
),
|
),
|
||||||
@@ -329,38 +266,39 @@ class _MhtSleepReportPageState extends State<MhtSleepReportPage> {
|
|||||||
}
|
}
|
||||||
return Container();
|
return Container();
|
||||||
}),
|
}),
|
||||||
|
|
||||||
Obx(() {
|
Obx(() {
|
||||||
if (userInfoController.model.login! != null &&
|
if (homeController.selectDevcie.value != null &&
|
||||||
userInfoController.model.login! == 1) {
|
homeController.selectDevcie.value!.isNotEmpty)
|
||||||
final list = deviceController.personnelList.value;
|
return Expanded(
|
||||||
if (list.isNotEmpty &&
|
child: NewSleepReportPage(
|
||||||
formFieldController.value == null) {
|
data: {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
"tag": "123",
|
||||||
formFieldController.value = list[0]["mac"];
|
'date': DateTime.now().millisecondsSinceEpoch,
|
||||||
personInfo.value = list[0];
|
'mac': homeController.selectDevcie.value,
|
||||||
homeController.selectPerson.value = list[0];
|
'person': homeController.selectPerson.value,
|
||||||
homeController.selectDevcie.value = list[0]["mac"];
|
'backgroundImg':
|
||||||
deviceController
|
'assets/images/new_background.png',
|
||||||
.getSleeps(formFieldController.value);
|
'arrow': false,
|
||||||
homeController.updateAll();
|
},
|
||||||
});
|
),
|
||||||
}
|
);
|
||||||
if (homeController.selectDevcie.value != null &&
|
// }
|
||||||
homeController.selectDevcie.value!.isNotEmpty)
|
|
||||||
return Expanded(
|
|
||||||
child: MHTNewSleepReportPage(
|
|
||||||
data: {
|
|
||||||
'date': DateTime.now().millisecondsSinceEpoch,
|
|
||||||
'mac': homeController.selectDevcie.value,
|
|
||||||
'person': homeController.selectPerson.value,
|
|
||||||
'backgroundImg':
|
|
||||||
'assets/images/new_background.png',
|
|
||||||
},
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return Container();
|
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',
|
||||||
|
// },
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// }
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import 'package:vbvs_app/common/util/MyUtils.dart';
|
|||||||
import 'package:vbvs_app/component/NullDataComponentWidget.dart';
|
import 'package:vbvs_app/component/NullDataComponentWidget.dart';
|
||||||
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
|
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
|
||||||
import 'package:vbvs_app/component/tool/TopSlideNotification.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/main_bottom/global_controller.dart';
|
||||||
import 'package:vbvs_app/controller/user_info_controller.dart';
|
import 'package:vbvs_app/controller/user_info_controller.dart';
|
||||||
import 'package:vbvs_app/controller/weather/weather_controller.dart';
|
import 'package:vbvs_app/controller/weather/weather_controller.dart';
|
||||||
@@ -628,19 +629,17 @@ class _NewHomePageState extends State<NewHomePage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
day['week'],
|
day['week'],
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
30.rpx,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
30.rpx,
|
0,
|
||||||
letterSpacing:
|
color: stringToColor(
|
||||||
0,
|
"#FFFFFF"),
|
||||||
color:
|
),
|
||||||
stringToColor("#FFFFFF"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 12
|
height: 12
|
||||||
@@ -648,19 +647,17 @@ class _NewHomePageState extends State<NewHomePage> {
|
|||||||
Text(
|
Text(
|
||||||
day['date'],
|
day['date'],
|
||||||
// "哈哈",
|
// "哈哈",
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
letterSpacing:
|
||||||
'Readex Pro',
|
0,
|
||||||
letterSpacing:
|
fontSize:
|
||||||
0,
|
22.rpx,
|
||||||
fontSize:
|
color: stringToColor(
|
||||||
22.rpx,
|
"#929699"),
|
||||||
color:
|
),
|
||||||
stringToColor("#929699"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 39
|
height: 39
|
||||||
@@ -797,17 +794,12 @@ class _NewHomePageState extends State<NewHomePage> {
|
|||||||
SizedBox(width: 20.rpx),
|
SizedBox(width: 20.rpx),
|
||||||
Text(
|
Text(
|
||||||
'添加新设备'.tr,
|
'添加新设备'.tr,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.titleSmall
|
color: stringToColor("#85F5FF"),
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
fontSize: 30.rpx,
|
||||||
'Readex Pro',
|
),
|
||||||
color: stringToColor(
|
|
||||||
"#85F5FF"),
|
|
||||||
letterSpacing: 0,
|
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -96,14 +96,12 @@ class IssueListPage extends GetView<IssueListController> {
|
|||||||
alignment: AlignmentDirectional(-1, 0),
|
alignment: AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'暂无内容!',
|
'暂无内容!',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.title_size,
|
||||||
color: Color(0xFF9EA4B7),
|
fontWeight: FontWeight.w600,
|
||||||
fontSize: AppFontsize.title_size,
|
),
|
||||||
fontWeight: FontWeight.w600,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -67,12 +67,13 @@ class IssuePreviewWidget extends GetView<IssuePreviewInfoController> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
issueListController.model.issueList![index]['title'] ??
|
issueListController.model.issueList![index]['title'] ??
|
||||||
'',
|
'',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Color(0xFFFFFFFF),
|
color: Color(0xFFFFFFFF),
|
||||||
fontSize: AppFontsize.title_size,
|
fontSize: AppFontsize.title_size,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
lineHeight: 1),
|
// height: 1,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -286,12 +286,12 @@ class _MessagePageState extends State<MessagePage> {
|
|||||||
SizedBox(width: 14.rpx), // 加号和文字间距
|
SizedBox(width: 14.rpx), // 加号和文字间距
|
||||||
Text(
|
Text(
|
||||||
'全部已读',
|
'全部已读',
|
||||||
style: FlutterFlowTheme.of(context).titleSmall.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ class MyExperienceWidget extends GetView {
|
|||||||
minHeight: 170,
|
minHeight: 170,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: FlutterFlowTheme.of(context).secondaryBackground,
|
|
||||||
borderRadius: BorderRadius.circular(16),
|
borderRadius: BorderRadius.circular(16),
|
||||||
),
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
@@ -47,15 +46,11 @@ class MyExperienceWidget extends GetView {
|
|||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery.sizeOf(context).width,
|
width: MediaQuery.sizeOf(context).width,
|
||||||
height: MediaQuery.sizeOf(context).height * 0.187,
|
height: MediaQuery.sizeOf(context).height * 0.187,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context).secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery.sizeOf(context).width,
|
width: MediaQuery.sizeOf(context).width,
|
||||||
height: MediaQuery.sizeOf(context).height * 0.187,
|
height: MediaQuery.sizeOf(context).height * 0.187,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context).secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
@@ -68,30 +63,22 @@ class MyExperienceWidget extends GetView {
|
|||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
minHeight: 20,
|
minHeight: 20,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery.sizeOf(context).width,
|
width: MediaQuery.sizeOf(context).width,
|
||||||
height: MediaQuery.sizeOf(context).height * 0.018,
|
height: MediaQuery.sizeOf(context).height * 0.018,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: const AlignmentDirectional(0, 0),
|
alignment: const AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
// widget!.name,
|
// widget!.name,
|
||||||
"体验时间:${DateFormat("yyyy-MM-dd HH:mm").format(DateTime.fromMillisecondsSinceEpoch(int.parse("${bookExperienceListController.model.bookInfoList[index]["bookTimeStart"]}")))}",
|
"体验时间:${DateFormat("yyyy-MM-dd HH:mm").format(DateTime.fromMillisecondsSinceEpoch(int.parse("${bookExperienceListController.model.bookInfoList[index]["bookTimeStart"]}")))}",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFF182B7C),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.title_size,
|
||||||
color: const Color(0xFF182B7C),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.title_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -113,20 +100,14 @@ class MyExperienceWidget extends GetView {
|
|||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
minHeight: 55,
|
minHeight: 55,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery.sizeOf(context).width,
|
width: MediaQuery.sizeOf(context).width,
|
||||||
height: MediaQuery.sizeOf(context).height * 0.034,
|
height: MediaQuery.sizeOf(context).height * 0.034,
|
||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
minHeight: 55,
|
minHeight: 55,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
@@ -136,15 +117,12 @@ class MyExperienceWidget extends GetView {
|
|||||||
const AlignmentDirectional(-1, 0),
|
const AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'门店:${data["name"] ?? ""}',
|
'门店:${data["name"] ?? ""}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.small_text_size,
|
||||||
color: const Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize:
|
),
|
||||||
AppFontsize.small_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -154,15 +132,12 @@ class MyExperienceWidget extends GetView {
|
|||||||
const AlignmentDirectional(-1, 0),
|
const AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'地址:${data['addressDetail'] ?? ""}',
|
'地址:${data['addressDetail'] ?? ""}',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.small_text_size,
|
||||||
color: const Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize:
|
),
|
||||||
AppFontsize.small_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -172,15 +147,12 @@ class MyExperienceWidget extends GetView {
|
|||||||
const AlignmentDirectional(-1, 0),
|
const AlignmentDirectional(-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'电话:${data["hotline"]} ',
|
'电话:${data["hotline"]} ',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: const Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.small_text_size,
|
||||||
color: const Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize:
|
),
|
||||||
AppFontsize.small_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -198,17 +170,11 @@ class MyExperienceWidget extends GetView {
|
|||||||
),
|
),
|
||||||
width: MediaQuery.sizeOf(context).width,
|
width: MediaQuery.sizeOf(context).width,
|
||||||
height: MediaQuery.sizeOf(context).height * 0.038,
|
height: MediaQuery.sizeOf(context).height * 0.038,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Container(
|
child: Container(
|
||||||
width: MediaQuery.sizeOf(context).width,
|
width: MediaQuery.sizeOf(context).width,
|
||||||
height: MediaQuery.sizeOf(context).height * 0.038,
|
height: MediaQuery.sizeOf(context).height * 0.038,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: // Generated code for this Row Widget...
|
child: // Generated code for this Row Widget...
|
||||||
Row(
|
Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
@@ -230,10 +196,7 @@ class MyExperienceWidget extends GetView {
|
|||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
maxWidth: 50,
|
maxWidth: 50,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
@@ -246,17 +209,14 @@ class MyExperienceWidget extends GetView {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'咨询',
|
'咨询',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
// color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
color: const Color(0xFF333333),
|
||||||
// color: Color(0xFF9EA4B7),
|
fontSize:
|
||||||
color:
|
AppFontsize.small_text_size,
|
||||||
const Color(0xFF333333),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.small_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(const SizedBox(width: 13)),
|
].divide(const SizedBox(width: 13)),
|
||||||
),
|
),
|
||||||
@@ -296,10 +256,7 @@ class MyExperienceWidget extends GetView {
|
|||||||
constraints: const BoxConstraints(
|
constraints: const BoxConstraints(
|
||||||
maxWidth: 50,
|
maxWidth: 50,
|
||||||
),
|
),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(),
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryBackground,
|
|
||||||
),
|
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
@@ -312,17 +269,14 @@ class MyExperienceWidget extends GetView {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'导航',
|
'导航',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
// color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
color: const Color(0xFF333333),
|
||||||
// color: Color(0xFF9EA4B7),
|
fontSize:
|
||||||
color:
|
AppFontsize.small_text_size,
|
||||||
const Color(0xFF333333),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.small_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(const SizedBox(width: 13)),
|
].divide(const SizedBox(width: 13)),
|
||||||
),
|
),
|
||||||
@@ -393,15 +347,12 @@ class MyExperienceWidget extends GetView {
|
|||||||
2
|
2
|
||||||
? const Color(0xFFD3B684)
|
? const Color(0xFFD3B684)
|
||||||
: stringToColor("#D3D3D3"),
|
: stringToColor("#D3D3D3"),
|
||||||
textStyle: FlutterFlowTheme.of(context)
|
textStyle: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.small_text_size,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize:
|
),
|
||||||
AppFontsize.small_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
borderSide: const BorderSide(
|
borderSide: const BorderSide(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
|
|||||||
@@ -439,12 +439,12 @@ class _MinePageState extends State<NewMinePage> {
|
|||||||
login == 1
|
login == 1
|
||||||
? (userInfoController.model.user!.nick_name ?? '未命名'.tr)
|
? (userInfoController.model.user!.nick_name ?? '未命名'.tr)
|
||||||
: "未命名".tr,
|
: "未命名".tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
fontSize: AppConstants().title_text_fontSize,
|
fontSize: AppConstants().title_text_fontSize,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
login == 1
|
login == 1
|
||||||
@@ -459,12 +459,12 @@ class _MinePageState extends State<NewMinePage> {
|
|||||||
}
|
}
|
||||||
})()
|
})()
|
||||||
: "未知数据".tr,
|
: "未知数据".tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: themeController.currentColor.sc4,
|
color: themeController.currentColor.sc4,
|
||||||
fontSize: AppConstants().normal_text_fontSize,
|
fontSize: AppConstants().normal_text_fontSize,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(height: 20.rpx)),
|
].divide(SizedBox(height: 20.rpx)),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -181,17 +181,14 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'当前版本',
|
'当前版本',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.title_text_fontSize,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
// height: 1.0,
|
||||||
.title_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -239,16 +236,14 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'切换语言',
|
'切换语言',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.title_text_fontSize,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
// height: 1.0,
|
||||||
.title_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1.0),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -262,17 +257,13 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
.value
|
.value
|
||||||
?.language_name ??
|
?.language_name ??
|
||||||
'简体中文',
|
'简体中文',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: Color(0xFFD9E3EB),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
// height: 1.0,
|
||||||
Color(0xFFD9E3EB),
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1.0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
@@ -312,17 +303,14 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'设置页.关于我们'.tr,
|
'设置页.关于我们'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.title_text_fontSize,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
// height: 1.0,
|
||||||
.title_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -364,17 +352,14 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'设置页.用户协议'.tr,
|
'设置页.用户协议'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.title_text_fontSize,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
// height: 1.0,
|
||||||
.title_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -416,17 +401,14 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'设置页.隐私协议'.tr,
|
'设置页.隐私协议'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: AppConstants()
|
||||||
fontFamily: 'Inter',
|
.title_text_fontSize,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
// height: 1.0,
|
||||||
.title_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
lineHeight: 1.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 22.rpx)),
|
].divide(SizedBox(width: 22.rpx)),
|
||||||
),
|
),
|
||||||
@@ -490,15 +472,13 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'设置页.退出登录'.tr,
|
'设置页.退出登录'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: Color(0xFF003058),
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: Color(0xFF003058),
|
fontSize:
|
||||||
fontFamily: 'Inter',
|
AppConstants().normal_text_fontSize,
|
||||||
fontSize: AppConstants()
|
letterSpacing: 0.0,
|
||||||
.normal_text_fontSize,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
width: 17.rpx,
|
width: 17.rpx,
|
||||||
@@ -537,16 +517,13 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'设置页.注销账号'.tr,
|
'设置页.注销账号'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc9,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color:
|
fontSize:
|
||||||
themeController.currentColor.sc9,
|
AppConstants().normal_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
width: 17.rpx,
|
width: 17.rpx,
|
||||||
@@ -582,30 +559,24 @@ class _SettingPageState extends State<SettingPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'ICP备案号:浙ICP备2023000785号-1'.tr,
|
'ICP备案号:浙ICP备2023000785号-1'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc4,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController
|
fontSize: AppConstants()
|
||||||
.currentColor.sc4,
|
.smaller_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.smaller_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'Copyright © 202-2025 嘉兴太和信息技术有限责任公司 版权所有'
|
'Copyright © 202-2025 嘉兴太和信息技术有限责任公司 版权所有'
|
||||||
.tr,
|
.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
color: themeController.currentColor.sc4,
|
||||||
.override(
|
fontFamily: 'Inter',
|
||||||
color: themeController
|
fontSize: AppConstants()
|
||||||
.currentColor.sc4,
|
.smaller_text_fontSize,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.smaller_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(SizedBox(
|
].divide(SizedBox(
|
||||||
height: 17.rpx,
|
height: 17.rpx,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
|
|
||||||
import 'package:ef/ef.dart';
|
import 'package:ef/ef.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -159,14 +158,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
// ),
|
// ),
|
||||||
child: Text(
|
child: Text(
|
||||||
"保存",
|
"保存",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0XFF011D33),
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0XFF011D33),
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
@@ -234,15 +231,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'姓名',
|
'姓名',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Color(0xFF9EA4B7),
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0xFF9EA4B7),
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: 300.rpx,
|
width: 300.rpx,
|
||||||
@@ -305,15 +299,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'性别',
|
'性别',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Color(0xFF9EA4B7),
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0xFF9EA4B7),
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -357,16 +348,13 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
'${controller.model.peopleList[index]['gender'] == 1 ? '男' : '女'}',
|
'${controller.model.peopleList[index]['gender'] == 1 ? '男' : '女'}',
|
||||||
textAlign:
|
textAlign:
|
||||||
TextAlign.right,
|
TextAlign.right,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: 30.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Colors.white,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@@ -398,14 +386,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'身高(cm)',
|
'身高(cm)',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -442,15 +428,11 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
null
|
null
|
||||||
? "${controller.model.peopleList[index]['height']} cm"
|
? "${controller.model.peopleList[index]['height']} cm"
|
||||||
: '',
|
: '',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 16.rpx),
|
SizedBox(width: 16.rpx),
|
||||||
Icon(Icons.expand_more,
|
Icon(Icons.expand_more,
|
||||||
@@ -476,14 +458,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'体重(kg)',
|
'体重(kg)',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -520,15 +500,11 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
null
|
null
|
||||||
? "${controller.model.peopleList[index]['weight']} kg"
|
? "${controller.model.peopleList[index]['weight']} kg"
|
||||||
: '',
|
: '',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Colors.white,
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(width: 16.rpx),
|
SizedBox(width: 16.rpx),
|
||||||
Icon(Icons.expand_more,
|
Icon(Icons.expand_more,
|
||||||
@@ -555,15 +531,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'生日',
|
'生日',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Color(0xFF9EA4B7),
|
||||||
.override(
|
fontSize: 30.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0xFF9EA4B7),
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -621,16 +594,13 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
: '',
|
: '',
|
||||||
textAlign:
|
textAlign:
|
||||||
TextAlign.right,
|
TextAlign.right,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: 30.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Colors.white,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@@ -662,14 +632,12 @@ class PeopleInfoPage extends GetView<PeopleInfoController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'联系人',
|
'联系人',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: 300.rpx,
|
width: 300.rpx,
|
||||||
|
|||||||
@@ -159,16 +159,12 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.applyRepairModel!
|
.applyRepairModel!
|
||||||
.device_name ??
|
.device_name ??
|
||||||
'未命名',
|
'未命名',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 30.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
color: Colors.white,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
color: Colors.white,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -182,17 +178,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.applyRepairModel!
|
.applyRepairModel!
|
||||||
.device_category ??
|
.device_category ??
|
||||||
'未命名'),
|
'未命名'),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: const Color(
|
||||||
.override(
|
0xFF929699),
|
||||||
fontFamily:
|
fontSize: 26.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: const Color(
|
),
|
||||||
0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -206,17 +198,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.applyRepairModel!
|
.applyRepairModel!
|
||||||
.device_type ??
|
.device_type ??
|
||||||
'未命名'),
|
'未命名'),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: const Color(
|
||||||
.override(
|
0xFF929699),
|
||||||
fontFamily:
|
fontSize: 26.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: const Color(
|
),
|
||||||
0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -230,17 +218,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.applyRepairModel!
|
.applyRepairModel!
|
||||||
.device_id ??
|
.device_id ??
|
||||||
'未命名'),
|
'未命名'),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: const Color(
|
||||||
.override(
|
0xFF929699),
|
||||||
fontFamily:
|
fontSize: 26.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: const Color(
|
),
|
||||||
0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -255,17 +239,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.id
|
.id
|
||||||
.toString() ??
|
.toString() ??
|
||||||
'未命名'),
|
'未命名'),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: const Color(
|
||||||
.override(
|
0xFF929699),
|
||||||
fontFamily:
|
fontSize: 26.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: const Color(
|
),
|
||||||
0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -279,17 +259,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.model
|
.model
|
||||||
.applyRepairModel!
|
.applyRepairModel!
|
||||||
.create_time!)),
|
.create_time!)),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: const Color(
|
||||||
.override(
|
0xFF929699),
|
||||||
fontFamily:
|
fontSize: 26.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: const Color(
|
),
|
||||||
0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -303,17 +279,13 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.applyRepairModel!
|
.applyRepairModel!
|
||||||
.desc ??
|
.desc ??
|
||||||
'未命名'),
|
'未命名'),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: const Color(
|
||||||
.override(
|
0xFF929699),
|
||||||
fontFamily:
|
fontSize: 26.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: const Color(
|
),
|
||||||
0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
@@ -377,14 +349,12 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.centerStart, // 文字左对齐
|
.centerStart, // 文字左对齐
|
||||||
child: Text(
|
child: Text(
|
||||||
'报修状态',
|
'报修状态',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 30.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -483,19 +453,15 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
// color: FlutterFlowTheme.of(context)
|
// color: FlutterFlowTheme.of(context)
|
||||||
// .secondaryBackground,
|
// .secondaryBackground,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
textStyle:
|
textStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.titleSmall
|
// color: Color(0xFF333333),
|
||||||
.override(
|
// color: stringToColor("#D3B684"),
|
||||||
fontFamily:
|
color:
|
||||||
'Readex Pro',
|
stringToColor("#117EFD"),
|
||||||
// color: Color(0xFF333333),
|
fontSize: 11,
|
||||||
// color: stringToColor("#D3B684"),
|
letterSpacing: 0,
|
||||||
color: stringToColor(
|
),
|
||||||
"#117EFD"),
|
|
||||||
fontSize: 11,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
// color: Color(0xFFC8CBD2),
|
// color: Color(0xFFC8CBD2),
|
||||||
@@ -558,18 +524,14 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'评价状态',
|
'评价状态',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: const Color(
|
||||||
fontFamily:
|
0xFF333333),
|
||||||
'Readex Pro',
|
fontSize: 15,
|
||||||
color: const Color(
|
letterSpacing: 0.0,
|
||||||
0xFF333333),
|
),
|
||||||
fontSize: 15,
|
|
||||||
letterSpacing:
|
|
||||||
0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -617,17 +579,16 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
.model
|
.model
|
||||||
.applyRepairModel!
|
.applyRepairModel!
|
||||||
.score_time!),
|
.score_time!),
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0.0,
|
||||||
0.0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -652,17 +613,15 @@ class RepairHistoryListPage extends GetView<RepairInfoController> {
|
|||||||
0),
|
0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'已评价',
|
'已评价',
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
AppFontsize.normal_text_size,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
AppFontsize.normal_text_size,
|
0.0,
|
||||||
letterSpacing:
|
),
|
||||||
0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
|
|||||||
// repairListController
|
// repairListController
|
||||||
// .model.repairList[index].device_category ??
|
// .model.repairList[index].device_category ??
|
||||||
// '',
|
// '',
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Readex Pro',
|
// fontFamily: 'Readex Pro',
|
||||||
// color: Color(0xFF333333),
|
// color: Color(0xFF333333),
|
||||||
// fontSize: 30.rpx,
|
// fontSize: 30.rpx,
|
||||||
@@ -76,7 +76,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
|
|||||||
// alignment: AlignmentDirectional(-1, 0),
|
// alignment: AlignmentDirectional(-1, 0),
|
||||||
// child: Text(
|
// child: Text(
|
||||||
// "报修单号:${repairListController.model.repairList[index].id}",
|
// "报修单号:${repairListController.model.repairList[index].id}",
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Readex Pro',
|
// fontFamily: 'Readex Pro',
|
||||||
// color: Color(0xFFC8CBD2),
|
// color: Color(0xFFC8CBD2),
|
||||||
// fontSize: AppFontsize.small_text_size,
|
// fontSize: AppFontsize.small_text_size,
|
||||||
@@ -91,7 +91,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
|
|||||||
// (MyUtils.formatDateTime(repairListController
|
// (MyUtils.formatDateTime(repairListController
|
||||||
// .model.repairList[index].create_time!) ??
|
// .model.repairList[index].create_time!) ??
|
||||||
// ''),
|
// ''),
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Readex Pro',
|
// fontFamily: 'Readex Pro',
|
||||||
// color: Color(0xFFC8CBD2),
|
// color: Color(0xFFC8CBD2),
|
||||||
// fontSize: AppFontsize.small_text_size,
|
// fontSize: AppFontsize.small_text_size,
|
||||||
@@ -117,7 +117,7 @@ class RepairHistoryWidget extends GetView<RepairInfoController> {
|
|||||||
// child: Text(
|
// child: Text(
|
||||||
// repairListController.model.repairList[index].status ??
|
// repairListController.model.repairList[index].status ??
|
||||||
// '',
|
// '',
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Readex Pro',
|
// fontFamily: 'Readex Pro',
|
||||||
// color: Color(0xFF333333),
|
// color: Color(0xFF333333),
|
||||||
// fontSize: AppFontsize.normal_text_size,
|
// fontSize: AppFontsize.normal_text_size,
|
||||||
|
|||||||
@@ -247,14 +247,12 @@ class DeviceRepairPage extends GetView<RepairListController> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"我要报修",
|
"我要报修",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: stringToColor("#011D33"),
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: stringToColor("#011D33"),
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -42,17 +42,17 @@ class RepairStatusWidget extends GetView {
|
|||||||
MyUtils.formatDateTime(repairInfoController
|
MyUtils.formatDateTime(repairInfoController
|
||||||
.model.repairProcessList[index].create_time!) ??
|
.model.repairProcessList[index].create_time!) ??
|
||||||
'未知时间',
|
'未知时间',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
color: index ==
|
color: index ==
|
||||||
repairInfoController
|
repairInfoController
|
||||||
.model.repairProcessList.length -
|
.model.repairProcessList.length -
|
||||||
1
|
1
|
||||||
? Colors.white
|
? Colors.white
|
||||||
: Colors.white,
|
: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -65,33 +65,27 @@ class RepairStatusWidget extends GetView {
|
|||||||
repairInfoController
|
repairInfoController
|
||||||
.model.repairProcessList[index].status ??
|
.model.repairProcessList[index].status ??
|
||||||
'未知状态',
|
'未知状态',
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
fontSize: 26.rpx,
|
fontSize: 26.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
color: repairInfoController
|
color: repairInfoController
|
||||||
.model.repairProcessList[index].status ==
|
.model.repairProcessList[index].status ==
|
||||||
RepairStatus.pending
|
RepairStatus.pending
|
||||||
? AppColors().check_Color
|
? AppColors().check_Color
|
||||||
: repairInfoController
|
: repairInfoController.model.repairProcessList[index]
|
||||||
.model
|
.status ==
|
||||||
.repairProcessList[index]
|
RepairStatus.approved ||
|
||||||
.status ==
|
repairInfoController.model
|
||||||
RepairStatus.approved ||
|
.repairProcessList[index].status ==
|
||||||
repairInfoController
|
'维修中'
|
||||||
.model
|
? AppColors().repair_Color
|
||||||
.repairProcessList[index]
|
: repairInfoController.model
|
||||||
.status ==
|
.repairProcessList[index].status ==
|
||||||
'维修中'
|
RepairStatus.completed
|
||||||
? AppColors().repair_Color
|
? AppColors().finish_Color
|
||||||
: repairInfoController
|
: AppColors().unOp_Color, // 根据状态设置文字颜色
|
||||||
.model
|
),
|
||||||
.repairProcessList[index]
|
|
||||||
.status ==
|
|
||||||
RepairStatus.completed
|
|
||||||
? AppColors().finish_Color
|
|
||||||
: AppColors().unOp_Color, // 根据状态设置文字颜色
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -105,12 +99,12 @@ class RepairStatusWidget extends GetView {
|
|||||||
? '未备注'
|
? '未备注'
|
||||||
: repairInfoController
|
: repairInfoController
|
||||||
.model.repairProcessList[index].desc!,
|
.model.repairProcessList[index].desc!,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 20.rpx,
|
fontSize: 20.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'package:ef/base/widget/flutterflow/FlutterFlowTheme.dart';
|
|
||||||
import 'package:ef/ef.dart';
|
import 'package:ef/ef.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
import 'package:vbvs_app/common/color/ServiceConstant.dart';
|
||||||
|
|||||||
@@ -108,15 +108,11 @@ class ScorePage extends GetView<mh.ScoreController> {
|
|||||||
AlignmentDirectional(0, 0),
|
AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'我要评价',
|
'我要评价',
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 30.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
color: Colors.white),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 30.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
color: Colors.white),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
@@ -295,18 +291,13 @@ class ScorePage extends GetView<mh.ScoreController> {
|
|||||||
}
|
}
|
||||||
return Text(
|
return Text(
|
||||||
scoreText,
|
scoreText,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 30.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
color: scoreColor,
|
||||||
'Readex Pro',
|
fontWeight:
|
||||||
fontSize: 30.rpx,
|
FontWeight.bold),
|
||||||
letterSpacing: 0,
|
|
||||||
color: scoreColor,
|
|
||||||
fontWeight:
|
|
||||||
FontWeight
|
|
||||||
.bold),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -318,16 +309,11 @@ class ScorePage extends GetView<mh.ScoreController> {
|
|||||||
.fromSTEB(0, 17, 0, 0),
|
.fromSTEB(0, 17, 0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'再多的溢美之词,都比不上您真心的评价。我们愿付出200%的努力,只为您100%的满意~感谢您的支持与厚爱!',
|
'再多的溢美之词,都比不上您真心的评价。我们愿付出200%的努力,只为您100%的满意~感谢您的支持与厚爱!',
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
color: Color(0xFF9AA0B3)),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
color:
|
|
||||||
Color(0xFF9AA0B3)),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -443,14 +429,12 @@ class ScorePage extends GetView<mh.ScoreController> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"提交",
|
"提交",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: stringToColor("#011D33"),
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: stringToColor("#011D33"),
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0,
|
),
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -55,8 +55,7 @@ class SearchWidget extends GetView {
|
|||||||
width: 100.rpx,
|
width: 100.rpx,
|
||||||
height: 60.rpx,
|
height: 60.rpx,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color:
|
color: Colors.white,
|
||||||
FlutterFlowTheme.of(context).secondaryBackground,
|
|
||||||
),
|
),
|
||||||
child: Align(
|
child: Align(
|
||||||
alignment: AlignmentDirectional(-1, 0),
|
alignment: AlignmentDirectional(-1, 0),
|
||||||
@@ -65,21 +64,17 @@ class SearchWidget extends GetView {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText: hint,
|
hintText: hint,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
hintStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: Color(0XFFC8CBD2)),
|
||||||
letterSpacing: 0.0,
|
|
||||||
color: Color(0XFFC8CBD2)),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -96,14 +91,12 @@ class SearchWidget extends GetView {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
),
|
),
|
||||||
focusedErrorBorder: OutlineInputBorder(
|
focusedErrorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
@@ -113,16 +106,14 @@ class SearchWidget extends GetView {
|
|||||||
contentPadding: EdgeInsets.symmetric(
|
contentPadding: EdgeInsets.symmetric(
|
||||||
vertical: 12.rpx, horizontal: 12.rpx), // 关键设置
|
vertical: 12.rpx, horizontal: 12.rpx), // 关键设置
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
color: Colors.black,
|
||||||
fontSize: 26.rpx,
|
letterSpacing: 0.0,
|
||||||
color: Colors.black,
|
),
|
||||||
letterSpacing: 0.0,
|
// cursorColor:
|
||||||
),
|
// FlutterFlowTheme.of(context).primaryText,
|
||||||
cursorColor:
|
|
||||||
FlutterFlowTheme.of(context).primaryText,
|
|
||||||
// validator: _model
|
// validator: _model
|
||||||
// .textControllerValidator
|
// .textControllerValidator
|
||||||
// .asValidator(context),
|
// .asValidator(context),
|
||||||
@@ -147,12 +138,12 @@ class SearchWidget extends GetView {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'搜索'.tr,
|
'搜索'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
color: stringToColor("#333333"), //固定
|
color: stringToColor("#333333"), //固定
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 26.rpx)),
|
].divide(SizedBox(width: 26.rpx)),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -126,14 +126,12 @@ class Smys extends GetView<SleepingHabitController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'睡眠隐私功能',
|
'睡眠隐私功能',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
|
||||||
@@ -181,14 +179,12 @@ class Smys extends GetView<SleepingHabitController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'开始时间',
|
'开始时间',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
@@ -210,14 +206,12 @@ class Smys extends GetView<SleepingHabitController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"${controller.model.smysStartTimeToString}",
|
"${controller.model.smysStartTimeToString}",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 16.rpx,
|
width: 16.rpx,
|
||||||
@@ -259,14 +253,12 @@ class Smys extends GetView<SleepingHabitController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'结束时间',
|
'结束时间',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
@@ -288,14 +280,12 @@ class Smys extends GetView<SleepingHabitController> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"${controller.model.smysEndTimeToString}",
|
"${controller.model.smysEndTimeToString}",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 16.rpx,
|
width: 16.rpx,
|
||||||
@@ -325,14 +315,12 @@ class Smys extends GetView<SleepingHabitController> {
|
|||||||
decoration: BoxDecoration(),
|
decoration: BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'*注:开启睡眠隐私功能后,在设置的时间段内,将不会采集您的睡眠数据。',
|
'*注:开启睡眠隐私功能后,在设置的时间段内,将不会采集您的睡眠数据。',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 20.rpx,
|
||||||
color: Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -74,12 +74,12 @@ class _UpdateUserPageState extends State<EditUserPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'编辑资料'.tr,
|
'编辑资料'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -186,14 +186,12 @@ class _UpdateUserPageState extends State<EditUserPage> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
'点击更换头像'.tr,
|
'点击更换头像'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: stringToColor("#85F5FF"),
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: stringToColor("#85F5FF"),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -242,25 +240,19 @@ class _UpdateUserPageState extends State<EditUserPage> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
hintText: '未命名'.tr,
|
hintText: '未命名'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController
|
||||||
fontSize: 26.rpx,
|
.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -281,9 +273,6 @@ class _UpdateUserPageState extends State<EditUserPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -293,9 +282,6 @@ class _UpdateUserPageState extends State<EditUserPage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -304,15 +290,13 @@ class _UpdateUserPageState extends State<EditUserPage> {
|
|||||||
),
|
),
|
||||||
filled: false,
|
filled: false,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc3,
|
||||||
color: themeController
|
),
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor: themeController
|
cursorColor: themeController
|
||||||
.currentColor.sc3,
|
.currentColor.sc3,
|
||||||
|
|||||||
@@ -128,25 +128,18 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
// autofocus: true,
|
// autofocus: true,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入手机号'.tr,
|
hintText: '请输入手机号'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0xFF929699),
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder: InputBorder.none,
|
enabledBorder: InputBorder.none,
|
||||||
focusedBorder: InputBorder.none,
|
focusedBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
@@ -157,15 +150,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
.fromSTEB(20.rpx, 0, 0,
|
.fromSTEB(20.rpx, 0, 0,
|
||||||
0.rpx),
|
0.rpx),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -204,33 +193,21 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
},
|
},
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
fontSize: 20.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize:
|
|
||||||
20.rpx,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
hintText: '请输验证码'.tr,
|
hintText: '请输验证码'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
color:
|
||||||
.override(
|
Color(0xFF929699),
|
||||||
fontFamily:
|
fontSize: 26.rpx,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(
|
),
|
||||||
0xFF929699),
|
|
||||||
fontSize:
|
|
||||||
26.rpx,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -244,15 +221,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
.fromSTEB(20.rpx,
|
.fromSTEB(20.rpx,
|
||||||
0, 0, 0.rpx),
|
0, 0, 0.rpx),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -383,28 +356,18 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
obscureText:
|
obscureText:
|
||||||
controller.model.pdshow!,
|
controller.model.pdshow!,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Readex Pro',
|
||||||
context)
|
fontSize: 26.rpx,
|
||||||
.labelMedium
|
letterSpacing: 0,
|
||||||
.override(
|
),
|
||||||
fontFamily:
|
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入新密码'.tr,
|
hintText: '请输入新密码'.tr,
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
color:
|
|
||||||
Color(0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -434,15 +397,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -479,28 +438,18 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
obscureText:
|
obscureText:
|
||||||
controller.model.cpdshow!,
|
controller.model.cpdshow!,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Readex Pro',
|
||||||
context)
|
fontSize: 26.rpx,
|
||||||
.labelMedium
|
letterSpacing: 0,
|
||||||
.override(
|
),
|
||||||
fontFamily:
|
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '确认新密码',
|
hintText: '确认新密码',
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
color:
|
|
||||||
Color(0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -530,15 +479,11 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -590,7 +535,7 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
}
|
}
|
||||||
String msg = await controller
|
String msg = await controller
|
||||||
.confirmCode(context);
|
.confirmCode(context);
|
||||||
if (msg.isEmpty) {
|
if (msg.isEmpty) {
|
||||||
Get.toNamed("/loginPage");
|
Get.toNamed("/loginPage");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -612,15 +557,12 @@ class FindPasswordPage extends GetView<FindPasswordController> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"提交",
|
"提交",
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
color: Color(0XFF003058),
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Color(0XFF003058),
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -287,19 +287,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
0, 1),
|
0, 1),
|
||||||
child: Text(
|
child: Text(
|
||||||
'密码登录'.tr,
|
'密码登录'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: stringToColor(
|
||||||
'Readex Pro',
|
"#84F5FF"),
|
||||||
color:
|
fontSize:
|
||||||
stringToColor("#84F5FF"),
|
AppFontsize
|
||||||
fontSize:
|
.title_size,
|
||||||
AppFontsize.title_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -385,20 +384,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
0, 1),
|
0, 1),
|
||||||
child: Text(
|
child: Text(
|
||||||
'短信登录'.tr,
|
'短信登录'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: Colors
|
||||||
'Readex Pro',
|
.white,
|
||||||
color: Colors
|
fontSize:
|
||||||
.white,
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize
|
letterSpacing:
|
||||||
.normal_text_size,
|
0,
|
||||||
letterSpacing:
|
),
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -487,19 +484,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
0, 1),
|
0, 1),
|
||||||
child: Text(
|
child: Text(
|
||||||
'密码登录'.tr,
|
'密码登录'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: Colors
|
||||||
'Readex Pro',
|
.white,
|
||||||
color: Colors
|
fontSize:
|
||||||
.white,
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -582,19 +578,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
0, 1),
|
0, 1),
|
||||||
child: Text(
|
child: Text(
|
||||||
'短信登录'.tr,
|
'短信登录'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: stringToColor(
|
||||||
'Readex Pro',
|
"#84F5FF"),
|
||||||
color:
|
fontSize:
|
||||||
stringToColor("#84F5FF"),
|
AppFontsize
|
||||||
fontSize:
|
.title_size,
|
||||||
AppFontsize.title_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -673,29 +668,19 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
controller.model.account,
|
controller.model.account,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Readex Pro',
|
||||||
context)
|
fontSize: AppFontsize
|
||||||
.labelMedium
|
.normal_text_size,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入账号',
|
hintText: '请输入账号',
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFFD2D2D2),
|
||||||
.override(
|
fontSize: 13.px,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
color:
|
|
||||||
Color(0xFFD2D2D2),
|
|
||||||
fontSize: 13.px,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -708,16 +693,12 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
.fromSTEB(
|
.fromSTEB(
|
||||||
10, 0, 0, 5),
|
10, 0, 0, 5),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -768,35 +749,23 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
.model.password,
|
.model.password,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize:
|
|
||||||
AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
hintText: '请输入密码',
|
hintText: '请输入密码',
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
color:
|
||||||
.override(
|
Color(0xFFD2D2D2),
|
||||||
fontFamily:
|
fontSize: AppFontsize
|
||||||
'Readex Pro',
|
.normal_text_size,
|
||||||
color: Color(
|
letterSpacing: 0,
|
||||||
0xFFD2D2D2),
|
),
|
||||||
fontSize:
|
|
||||||
AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -834,16 +803,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
fontSize: AppFontsize
|
||||||
fontFamily:
|
.normal_text_size,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1007,30 +973,20 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
},
|
},
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Readex Pro',
|
||||||
context)
|
fontSize: AppFontsize
|
||||||
.labelMedium
|
.normal_text_size,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入手机号'.tr,
|
hintText: '请输入手机号'.tr,
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFFD2D2D2),
|
||||||
.override(
|
fontSize: AppFontsize
|
||||||
fontFamily:
|
.normal_text_size,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color:
|
),
|
||||||
Color(0xFFD2D2D2),
|
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -1043,16 +999,12 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
.fromSTEB(
|
.fromSTEB(
|
||||||
10, 0, 0, 5),
|
10, 0, 0, 5),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1101,35 +1053,23 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize:
|
|
||||||
AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
hintText: '请输入验证码',
|
hintText: '请输入验证码',
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
color:
|
||||||
.override(
|
Color(0xFFD2D2D2),
|
||||||
fontFamily:
|
fontSize: AppFontsize
|
||||||
'Readex Pro',
|
.normal_text_size,
|
||||||
color: Color(
|
letterSpacing: 0,
|
||||||
0xFFD2D2D2),
|
),
|
||||||
fontSize:
|
|
||||||
AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -1143,16 +1083,13 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
.fromSTEB(10, 0,
|
.fromSTEB(10, 0,
|
||||||
0, 5),
|
0, 5),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
fontSize: AppFontsize
|
||||||
fontFamily:
|
.normal_text_size,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1421,9 +1358,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color: FlutterFlowTheme
|
color:
|
||||||
.of(context)
|
Colors.white,
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor:
|
activeColor:
|
||||||
stringToColor(
|
stringToColor(
|
||||||
@@ -1469,18 +1405,14 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
0, 0),
|
0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'我已阅读并同意'.tr,
|
'我已阅读并同意'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
Colors.white,
|
||||||
'Readex Pro',
|
fontSize: 12,
|
||||||
color: Colors
|
letterSpacing: 0,
|
||||||
.white,
|
),
|
||||||
fontSize: 12,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -1498,19 +1430,16 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'《用户协议》'.tr,
|
'《用户协议》'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
stringToColor(
|
||||||
'Readex Pro',
|
|
||||||
color: stringToColor(
|
|
||||||
"FF9F66"),
|
"FF9F66"),
|
||||||
fontSize:
|
fontSize: 12,
|
||||||
12,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1520,18 +1449,14 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
0, 0),
|
0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'与'.tr,
|
'与'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
Colors.white,
|
||||||
'Readex Pro',
|
fontSize: 12,
|
||||||
color: Colors
|
letterSpacing: 0,
|
||||||
.white,
|
),
|
||||||
fontSize: 12,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -1549,19 +1474,16 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'《隐私协议》'.tr,
|
'《隐私协议》'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
stringToColor(
|
||||||
'Readex Pro',
|
|
||||||
color: stringToColor(
|
|
||||||
"FF9F66"),
|
"FF9F66"),
|
||||||
fontSize:
|
fontSize: 12,
|
||||||
12,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1657,19 +1579,17 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
child: Text(
|
child: Text(
|
||||||
'注:首次登录会自动创建账号'
|
'注:首次登录会自动创建账号'
|
||||||
.tr,
|
.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: stringToColor(
|
||||||
'Readex Pro',
|
"#FFFFFF"),
|
||||||
color: stringToColor(
|
fontSize:
|
||||||
"#FFFFFF"),
|
23.rpx,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
23.rpx,
|
0,
|
||||||
letterSpacing:
|
),
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@@ -1843,8 +1763,7 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
BorderSide(
|
BorderSide(
|
||||||
width:
|
width:
|
||||||
1.5,
|
1.5,
|
||||||
color: FlutterFlowTheme.of(context)
|
color: Colors.white,
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor:
|
activeColor:
|
||||||
stringToColor(
|
stringToColor(
|
||||||
@@ -1919,19 +1838,18 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'找回密码'.tr,
|
'找回密码'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: stringToColor(
|
||||||
'Readex Pro',
|
"#84F5FF"),
|
||||||
color: stringToColor(
|
fontSize:
|
||||||
"#84F5FF"),
|
AppFontsize
|
||||||
fontSize:
|
.small_text_size,
|
||||||
AppFontsize.small_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -1985,19 +1903,17 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'注册'.tr,
|
'注册'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: stringToColor(
|
||||||
'Readex Pro',
|
"#84F5FF"),
|
||||||
color:
|
fontSize:
|
||||||
stringToColor("#84F5FF"),
|
AppFontsize.small_text_size,
|
||||||
fontSize:
|
letterSpacing:
|
||||||
AppFontsize.small_text_size,
|
0,
|
||||||
letterSpacing:
|
),
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
@@ -2073,7 +1989,8 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
// }
|
// }
|
||||||
// await loginController
|
// await loginController
|
||||||
// .wxLoginSendAuth(context);
|
// .wxLoginSendAuth(context);
|
||||||
TopSlideNotification.show(context,text: "测试阶段,暂不支持".tr);
|
TopSlideNotification.show(context,
|
||||||
|
text: "测试阶段,暂不支持".tr);
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
width: 90.rpx,
|
width: 90.rpx,
|
||||||
@@ -2135,28 +2052,24 @@ class MHTLoginPage extends GetView<MHTLoginController> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'合肥眠花糖家具有限责任公司版权所有',
|
'合肥眠花糖家具有限责任公司版权所有',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.explain_size,
|
||||||
color: Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.explain_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Copyright© 2019-2029',
|
'Copyright© 2019-2029',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Color(0xFF9EA4B7),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.explain_size,
|
||||||
color: Color(0xFF9EA4B7),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.explain_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Align(
|
// Align(
|
||||||
|
|||||||
@@ -118,24 +118,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
},
|
},
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily: 'Readex Pro',
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入手机号'.tr,
|
hintText: '请输入手机号'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0xFF929699),
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder: InputBorder.none,
|
enabledBorder: InputBorder.none,
|
||||||
focusedBorder: InputBorder.none,
|
focusedBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
@@ -145,13 +139,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
EdgeInsetsDirectional.fromSTEB(
|
EdgeInsetsDirectional.fromSTEB(
|
||||||
20.rpx, 0, 0, 10.rpx),
|
20.rpx, 0, 0, 10.rpx),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -185,25 +177,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
obscureText:
|
obscureText:
|
||||||
controller.model.pdshow!,
|
controller.model.pdshow!,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入密码'.tr,
|
hintText: '请输入密码'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0xFF929699),
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder: InputBorder.none,
|
enabledBorder: InputBorder.none,
|
||||||
focusedBorder: InputBorder.none,
|
focusedBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
@@ -231,15 +216,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
@@ -274,25 +255,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
obscureText:
|
obscureText:
|
||||||
controller.model.cpdshow!,
|
controller.model.cpdshow!,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入确认密码'.tr,
|
hintText: '请输入确认密码'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle: TextStyle(
|
||||||
context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Color(0xFF929699),
|
),
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder: InputBorder.none,
|
enabledBorder: InputBorder.none,
|
||||||
focusedBorder: InputBorder.none,
|
focusedBorder: InputBorder.none,
|
||||||
errorBorder: InputBorder.none,
|
errorBorder: InputBorder.none,
|
||||||
@@ -320,15 +294,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
})),
|
})),
|
||||||
),
|
),
|
||||||
@@ -365,28 +335,18 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
// focusNode: _focusNode4,
|
// focusNode: _focusNode4,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily: 'Readex Pro',
|
||||||
context)
|
fontSize: 26.rpx,
|
||||||
.labelMedium
|
letterSpacing: 0,
|
||||||
.override(
|
),
|
||||||
fontFamily:
|
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
hintText: '请输入验证码',
|
hintText: '请输入验证码',
|
||||||
hintStyle: FlutterFlowTheme
|
hintStyle: TextStyle(
|
||||||
.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.labelMedium
|
color: Color(0xFF929699),
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
color:
|
|
||||||
Color(0xFF929699),
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder.none,
|
InputBorder.none,
|
||||||
focusedBorder:
|
focusedBorder:
|
||||||
@@ -399,15 +359,11 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
.fromSTEB(20.rpx, 0,
|
.fromSTEB(20.rpx, 0,
|
||||||
0, 0.rpx),
|
0, 0.rpx),
|
||||||
),
|
),
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Readex Pro',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0,
|
||||||
fontFamily:
|
),
|
||||||
'Readex Pro',
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -579,9 +535,7 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
},
|
},
|
||||||
side: BorderSide(
|
side: BorderSide(
|
||||||
width: 1.5,
|
width: 1.5,
|
||||||
color: FlutterFlowTheme
|
color: Colors.white,
|
||||||
.of(context)
|
|
||||||
.secondaryText,
|
|
||||||
),
|
),
|
||||||
activeColor:
|
activeColor:
|
||||||
const Color(
|
const Color(
|
||||||
@@ -632,18 +586,13 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
0, 0),
|
0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'我已阅读并同意'.tr,
|
'我已阅读并同意'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: 12,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Colors
|
),
|
||||||
.white,
|
|
||||||
fontSize: 12,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -659,18 +608,15 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'《用户协议》'.tr,
|
'《用户协议》'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
stringToColor(
|
||||||
'Readex Pro',
|
|
||||||
color: stringToColor(
|
|
||||||
"FF9F66"),
|
"FF9F66"),
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
letterSpacing:
|
letterSpacing: 0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -680,18 +626,13 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
0, 0),
|
0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'与'.tr,
|
'与'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: 12,
|
||||||
'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: Colors
|
),
|
||||||
.white,
|
|
||||||
fontSize: 12,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Align(
|
Align(
|
||||||
@@ -707,18 +648,15 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'《隐私协议》'.tr,
|
'《隐私协议》'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
stringToColor(
|
||||||
'Readex Pro',
|
|
||||||
color: stringToColor(
|
|
||||||
"FF9F66"),
|
"FF9F66"),
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
letterSpacing:
|
letterSpacing: 0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -776,15 +714,12 @@ class RegisterPage extends GetView<MHTRegisterController> {
|
|||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"提交".tr,
|
"提交".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: stringToColor("#011D33"),
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color:
|
fontSize: 30.rpx,
|
||||||
stringToColor("#011D33"),
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
fontSize: 30.rpx,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
// children: [
|
// children: [
|
||||||
// Text(
|
// Text(
|
||||||
// '柔性唤醒',
|
// '柔性唤醒',
|
||||||
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: TextStyle(
|
||||||
// fontFamily: 'Readex Pro',
|
// fontFamily: 'Readex Pro',
|
||||||
// color: Colors.white,
|
// color: Colors.white,
|
||||||
// letterSpacing: 0,
|
// letterSpacing: 0,
|
||||||
@@ -289,14 +289,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'柔性唤醒功能',
|
'柔性唤醒功能',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
|
||||||
@@ -356,14 +354,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'唤醒时间',
|
'唤醒时间',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
@@ -384,14 +380,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"${controller.model.rxhxWakeTimeToString}",
|
"${controller.model.rxhxWakeTimeToString}",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 16.rpx,
|
width: 16.rpx,
|
||||||
@@ -421,14 +415,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'按摩',
|
'按摩',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -451,14 +443,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
controller.model.rxhxIsAnMo ? '开' : '关',
|
controller.model.rxhxIsAnMo ? '开' : '关',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 16.rpx,
|
width: 16.rpx,
|
||||||
@@ -488,14 +478,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'唤醒部位',
|
'唤醒部位',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
@@ -516,14 +504,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
location[controller.model.rxhxLocation],
|
location[controller.model.rxhxLocation],
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 16.rpx,
|
width: 16.rpx,
|
||||||
@@ -557,14 +543,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'自定义',
|
'自定义',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 26.rpx,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsetsDirectional.fromSTEB(
|
padding: EdgeInsetsDirectional.fromSTEB(
|
||||||
@@ -633,14 +617,12 @@ class _RxhxMhtState extends State<RxhxMht> {
|
|||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
child: Text(
|
child: Text(
|
||||||
'*注:开启该功能后,在设置的时间点,设备将启动一段固定时长的柔性唤醒功能。',
|
'*注:开启该功能后,在设置的时间点,设备将启动一段固定时长的柔性唤醒功能。',
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: 20.rpx,
|
||||||
color: Color(0xFF929699),
|
letterSpacing: 0,
|
||||||
fontSize: 20.rpx,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
|
|||||||
@@ -60,12 +60,12 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'修改密码'.tr,
|
'修改密码'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -137,18 +137,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'输入手机号码'.tr,
|
'输入手机号码'.tr,
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: AppFontsize
|
||||||
'Readex Pro',
|
.normal_text_size,
|
||||||
color:
|
letterSpacing: 0,
|
||||||
Colors.white,
|
),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -178,29 +174,18 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
obscureText: false,
|
obscureText: false,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize:
|
hintStyle: TextStyle(
|
||||||
AppFontsize
|
fontFamily:
|
||||||
.normal_text_size,
|
'Readex Pro',
|
||||||
letterSpacing:
|
letterSpacing: 0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
hintStyle:
|
|
||||||
FlutterFlowTheme.of(
|
|
||||||
context)
|
|
||||||
.labelMedium
|
|
||||||
.override(
|
|
||||||
fontFamily:
|
|
||||||
'Readex Pro',
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -231,9 +216,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme
|
color: Colors.red,
|
||||||
.of(context)
|
|
||||||
.error,
|
|
||||||
width: 2,
|
width: 2,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -245,9 +228,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme
|
color: Colors.red,
|
||||||
.of(context)
|
|
||||||
.error,
|
|
||||||
width: 2,
|
width: 2,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -260,19 +241,15 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
.fromSTEB(8,
|
.fromSTEB(8,
|
||||||
0, 0, 8),
|
0, 0, 8),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: themeController
|
||||||
fontFamily:
|
.currentColor.sc4,
|
||||||
'Readex Pro',
|
fontSize: AppFontsize
|
||||||
color: themeController
|
.normal_text_size,
|
||||||
.currentColor
|
letterSpacing: 0,
|
||||||
.sc4,
|
),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -295,18 +272,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'输入验证码',
|
'输入验证码',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: AppFontsize
|
||||||
'Readex Pro',
|
.normal_text_size,
|
||||||
color:
|
letterSpacing: 0,
|
||||||
Colors.white,
|
),
|
||||||
fontSize: AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -363,33 +336,31 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
false,
|
false,
|
||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
labelStyle: FlutterFlowTheme.of(
|
labelStyle:
|
||||||
context)
|
TextStyle(
|
||||||
.labelMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
hintText:
|
hintText:
|
||||||
'请输验证码',
|
'请输验证码',
|
||||||
hintStyle: FlutterFlowTheme.of(
|
hintStyle:
|
||||||
context)
|
TextStyle(
|
||||||
.labelMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
color: themeController
|
||||||
'Readex Pro',
|
.currentColor
|
||||||
color: themeController
|
.sc4,
|
||||||
.currentColor
|
fontSize:
|
||||||
.sc4,
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
InputBorder
|
InputBorder
|
||||||
.none,
|
.none,
|
||||||
@@ -409,17 +380,16 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
0,
|
0,
|
||||||
12),
|
12),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(
|
style:
|
||||||
context)
|
TextStyle(
|
||||||
.bodyMedium
|
fontFamily:
|
||||||
.override(
|
'Readex Pro',
|
||||||
fontFamily:
|
fontSize:
|
||||||
'Readex Pro',
|
AppFontsize
|
||||||
fontSize:
|
.normal_text_size,
|
||||||
AppFontsize.normal_text_size,
|
letterSpacing:
|
||||||
letterSpacing:
|
0,
|
||||||
0,
|
),
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -537,17 +507,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'输入新密码',
|
'输入新密码',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: AppFontsize
|
||||||
'Readex Pro',
|
.normal_text_size,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -575,35 +542,24 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
decoration:
|
decoration:
|
||||||
InputDecoration(
|
InputDecoration(
|
||||||
hintText: "请输入新密码".tr,
|
hintText: "请输入新密码".tr,
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize:
|
hintStyle: TextStyle(
|
||||||
AppFontsize
|
fontFamily:
|
||||||
.normal_text_size,
|
'Readex Pro',
|
||||||
letterSpacing:
|
color:
|
||||||
0,
|
themeController
|
||||||
),
|
.currentColor
|
||||||
hintStyle:
|
.sc4,
|
||||||
FlutterFlowTheme.of(
|
fontSize: AppFontsize
|
||||||
context)
|
.normal_text_size,
|
||||||
.labelMedium
|
letterSpacing: 0,
|
||||||
.override(
|
),
|
||||||
fontFamily:
|
|
||||||
'Readex Pro',
|
|
||||||
color: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc4,
|
|
||||||
fontSize:
|
|
||||||
AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -634,9 +590,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme
|
color: Colors.red,
|
||||||
.of(context)
|
|
||||||
.error,
|
|
||||||
width: 2,
|
width: 2,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -648,9 +602,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme
|
color: Colors.red,
|
||||||
.of(context)
|
|
||||||
.error,
|
|
||||||
width: 2,
|
width: 2,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -689,18 +641,15 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
Color(0xFF333333),
|
||||||
'Readex Pro',
|
fontSize: AppFontsize
|
||||||
color: Color(
|
.normal_text_size,
|
||||||
0xFF333333),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -721,17 +670,14 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
-1, 0),
|
-1, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'确认新密码',
|
'确认新密码',
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color: Colors.white,
|
||||||
fontFamily:
|
fontSize: AppFontsize
|
||||||
'Readex Pro',
|
.normal_text_size,
|
||||||
color: Colors.white,
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -760,35 +706,24 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
InputDecoration(
|
InputDecoration(
|
||||||
hintText:
|
hintText:
|
||||||
"请输入确认密码".tr,
|
"请输入确认密码".tr,
|
||||||
labelStyle:
|
labelStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(
|
fontFamily:
|
||||||
context)
|
'Readex Pro',
|
||||||
.labelMedium
|
fontSize: AppFontsize
|
||||||
.override(
|
.normal_text_size,
|
||||||
fontFamily:
|
letterSpacing: 0,
|
||||||
'Readex Pro',
|
),
|
||||||
fontSize:
|
hintStyle: TextStyle(
|
||||||
AppFontsize
|
fontFamily:
|
||||||
.normal_text_size,
|
'Readex Pro',
|
||||||
letterSpacing:
|
color:
|
||||||
0,
|
themeController
|
||||||
),
|
.currentColor
|
||||||
hintStyle:
|
.sc4,
|
||||||
FlutterFlowTheme.of(
|
fontSize: AppFontsize
|
||||||
context)
|
.normal_text_size,
|
||||||
.labelMedium
|
letterSpacing: 0,
|
||||||
.override(
|
),
|
||||||
fontFamily:
|
|
||||||
'Readex Pro',
|
|
||||||
color: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc4,
|
|
||||||
fontSize:
|
|
||||||
AppFontsize
|
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing:
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
enabledBorder:
|
enabledBorder:
|
||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
@@ -819,9 +754,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme
|
color: Colors.red,
|
||||||
.of(context)
|
|
||||||
.error,
|
|
||||||
width: 2,
|
width: 2,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -833,9 +766,7 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
UnderlineInputBorder(
|
UnderlineInputBorder(
|
||||||
borderSide:
|
borderSide:
|
||||||
BorderSide(
|
BorderSide(
|
||||||
color: FlutterFlowTheme
|
color: Colors.red,
|
||||||
.of(context)
|
|
||||||
.error,
|
|
||||||
width: 2,
|
width: 2,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -875,18 +806,15 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme
|
style: TextStyle(
|
||||||
.of(context)
|
fontFamily:
|
||||||
.bodyMedium
|
'Readex Pro',
|
||||||
.override(
|
color:
|
||||||
fontFamily:
|
Color(0xFF333333),
|
||||||
'Readex Pro',
|
fontSize: AppFontsize
|
||||||
color: Color(
|
.normal_text_size,
|
||||||
0xFF333333),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize
|
),
|
||||||
.normal_text_size,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
@@ -950,14 +878,12 @@ class UpdatePasswordPage extends GetView<UpdatePasswordController> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
'确定'.tr,
|
'确定'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: stringToColor("#003058"),
|
||||||
fontFamily: 'Readex Pro',
|
fontSize: AppFontsize.normal_text_size,
|
||||||
color: stringToColor("#003058"),
|
letterSpacing: 0,
|
||||||
fontSize: AppFontsize.normal_text_size,
|
),
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -89,12 +89,12 @@ class _EPageState extends State<PersonPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'人员资料.标题'.tr,
|
'人员资料.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -133,13 +133,11 @@ class _EPageState extends State<PersonPage> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料.保存'.tr,
|
'人员资料.保存'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Inter Tight',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter Tight',
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -191,24 +189,18 @@ class _EPageState extends State<PersonPage> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
hintText: '人员资料.名字输入提示'.tr,
|
hintText: '人员资料.名字输入提示'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
hintStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -227,8 +219,6 @@ class _EPageState extends State<PersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -236,8 +226,6 @@ class _EPageState extends State<PersonPage> {
|
|||||||
),
|
),
|
||||||
focusedErrorBorder: OutlineInputBorder(
|
focusedErrorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -245,14 +233,11 @@ class _EPageState extends State<PersonPage> {
|
|||||||
),
|
),
|
||||||
filled: true,
|
filled: true,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -307,21 +292,16 @@ class _EPageState extends State<PersonPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'男'.tr,
|
'男'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: isMaleGreyed
|
||||||
fontSize: 26.rpx,
|
? themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc4
|
||||||
color: isMaleGreyed
|
: themeController
|
||||||
? themeController
|
.currentColor.sc3,
|
||||||
.currentColor
|
),
|
||||||
.sc4
|
|
||||||
: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 14.rpx)),
|
SizedBox(height: 14.rpx)),
|
||||||
@@ -361,21 +341,16 @@ class _EPageState extends State<PersonPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'女'.tr,
|
'女'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: isFemaleGreyed
|
||||||
.override(
|
? themeController
|
||||||
fontFamily: 'Inter',
|
.currentColor.sc4
|
||||||
color: isFemaleGreyed
|
: themeController
|
||||||
? themeController
|
.currentColor.sc3,
|
||||||
.currentColor
|
fontSize: 26.rpx,
|
||||||
.sc4
|
letterSpacing: 0.0,
|
||||||
: themeController
|
),
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 14.rpx)),
|
SizedBox(height: 14.rpx)),
|
||||||
@@ -427,20 +402,15 @@ class _EPageState extends State<PersonPage> {
|
|||||||
personController.dateTime!)
|
personController.dateTime!)
|
||||||
: '人员资料.生日输入提示'.tr,
|
: '人员资料.生日输入提示'.tr,
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: personController.dateTime != null
|
||||||
fontFamily: 'Readex Pro',
|
? themeController.currentColor.sc3
|
||||||
color: personController.dateTime !=
|
: themeController.currentColor.sc4,
|
||||||
null
|
fontSize:
|
||||||
? themeController
|
AppConstants().normal_text_fontSize,
|
||||||
.currentColor.sc3
|
letterSpacing: 0,
|
||||||
: themeController
|
),
|
||||||
.currentColor.sc4,
|
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -480,14 +450,11 @@ class _EPageState extends State<PersonPage> {
|
|||||||
},
|
},
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Colors.transparent, // 隐藏输入文字
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
),
|
||||||
Colors.transparent, // 隐藏输入文字
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -495,17 +462,14 @@ class _EPageState extends State<PersonPage> {
|
|||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: '身高输入提示'.tr,
|
hintText: '身高输入提示'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -524,9 +488,6 @@ class _EPageState extends State<PersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -535,9 +496,6 @@ class _EPageState extends State<PersonPage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -555,16 +513,13 @@ class _EPageState extends State<PersonPage> {
|
|||||||
: Text(
|
: Text(
|
||||||
'${height}cm',
|
'${height}cm',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc3,
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@@ -605,14 +560,11 @@ class _EPageState extends State<PersonPage> {
|
|||||||
},
|
},
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Colors.transparent, // 隐藏输入文字
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
),
|
||||||
Colors.transparent, // 隐藏输入文字
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -620,17 +572,14 @@ class _EPageState extends State<PersonPage> {
|
|||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: '人员资料.体重输入提示'.tr,
|
hintText: '人员资料.体重输入提示'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -649,9 +598,6 @@ class _EPageState extends State<PersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -660,9 +606,6 @@ class _EPageState extends State<PersonPage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -680,16 +623,13 @@ class _EPageState extends State<PersonPage> {
|
|||||||
: Text(
|
: Text(
|
||||||
'${weight}kg',
|
'${weight}kg',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc3,
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@@ -707,14 +647,12 @@ class _EPageState extends State<PersonPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料.疾病标题'.tr,
|
'人员资料.疾病标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Color(0xFFF3F4F5),
|
||||||
fontFamily: 'Inter',
|
fontSize: 30.rpx,
|
||||||
color: Color(0xFFF3F4F5),
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -791,14 +729,12 @@ class _EPageState extends State<PersonPage> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料.提示'.tr,
|
'人员资料.提示'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: themeController.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: themeController.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 23.rpx)),
|
].divide(SizedBox(width: 23.rpx)),
|
||||||
@@ -841,12 +777,12 @@ class _EPageState extends State<PersonPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFC2CED7),
|
color: const Color(0xFFC2CED7),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
|
|||||||
@@ -78,15 +78,12 @@ Future showDateSelectionDialog(BuildContext context,
|
|||||||
InkWell(
|
InkWell(
|
||||||
child: Text(
|
child: Text(
|
||||||
"日期.取消".tr,
|
"日期.取消".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color:
|
fontSize:
|
||||||
themeController.currentColor.sc3,
|
AppConstants().normal_text_fontSize),
|
||||||
letterSpacing: 0,
|
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize),
|
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Get.back();
|
Get.back();
|
||||||
@@ -94,28 +91,23 @@ Future showDateSelectionDialog(BuildContext context,
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"$title",
|
"$title",
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color: themeController.currentColor.sc3,
|
fontSize:
|
||||||
letterSpacing: 0,
|
AppConstants().title_text_fontSize),
|
||||||
fontSize:
|
|
||||||
AppConstants().title_text_fontSize),
|
|
||||||
),
|
),
|
||||||
// closeIconWhite,
|
// closeIconWhite,
|
||||||
InkWell(
|
InkWell(
|
||||||
child: Text(
|
child: Text(
|
||||||
"日期.确定".tr,
|
"日期.确定".tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: themeController.currentColor.sc2,
|
||||||
fontFamily: 'Readex Pro',
|
letterSpacing: 0,
|
||||||
color:
|
fontSize:
|
||||||
themeController.currentColor.sc2,
|
AppConstants().normal_text_fontSize),
|
||||||
letterSpacing: 0,
|
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize),
|
|
||||||
),
|
),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
checkChange?.call(DateTime(years[yearIndex],
|
checkChange?.call(DateTime(years[yearIndex],
|
||||||
@@ -217,12 +209,12 @@ Future showDateSelectionDialog(BuildContext context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
TextStyle _unitStyle(BuildContext context) {
|
TextStyle _unitStyle(BuildContext context) {
|
||||||
return FlutterFlowTheme.of(context).bodyMedium.override(
|
return TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getOnePicker(BuildContext context, List arr, int checkIndex,
|
getOnePicker(BuildContext context, List arr, int checkIndex,
|
||||||
@@ -248,11 +240,11 @@ getOnePicker(BuildContext context, List arr, int checkIndex,
|
|||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: Text(
|
||||||
"${arr[index]}$unit", // ✅ 每项都带单位
|
"${arr[index]}$unit", // ✅ 每项都带单位
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -84,12 +84,12 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
/// 居中标题
|
/// 居中标题
|
||||||
Text(
|
Text(
|
||||||
'人员资料.标题'.tr,
|
'人员资料.标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Readex Pro',
|
fontFamily: 'Readex Pro',
|
||||||
color: themeController.currentColor.sc3,
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0,
|
letterSpacing: 0,
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
/// 左边返回按钮
|
/// 左边返回按钮
|
||||||
@@ -132,13 +132,11 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
16.rpx, 0, 16.rpx, 0),
|
16.rpx, 0, 16.rpx, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'完成'.tr,
|
'完成'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.titleSmall
|
fontFamily: 'Inter Tight',
|
||||||
.override(
|
color: themeController.currentColor.sc3,
|
||||||
fontFamily: 'Inter Tight',
|
letterSpacing: 0.0,
|
||||||
color: themeController.currentColor.sc3,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -191,24 +189,18 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
labelStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc3,
|
|
||||||
),
|
|
||||||
hintText: '人员资料.名字输入提示'.tr,
|
hintText: '人员资料.名字输入提示'.tr,
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
hintStyle: TextStyle(
|
||||||
.labelMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
fontSize: 26.rpx,
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
color: themeController.currentColor.sc4,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color: themeController
|
|
||||||
.currentColor.sc4,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -227,8 +219,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -236,8 +226,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
focusedErrorBorder: OutlineInputBorder(
|
focusedErrorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -245,14 +233,11 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
filled: true,
|
filled: true,
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: themeController.currentColor.sc3,
|
||||||
letterSpacing: 0.0,
|
),
|
||||||
color:
|
|
||||||
themeController.currentColor.sc3,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -307,21 +292,16 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'男'.tr,
|
'男'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
fontSize: 26.rpx,
|
||||||
.override(
|
letterSpacing: 0.0,
|
||||||
fontFamily: 'Inter',
|
color: isMaleGreyed
|
||||||
fontSize: 26.rpx,
|
? themeController
|
||||||
letterSpacing: 0.0,
|
.currentColor.sc4
|
||||||
color: isMaleGreyed
|
: themeController
|
||||||
? themeController
|
.currentColor.sc3,
|
||||||
.currentColor
|
),
|
||||||
.sc4
|
|
||||||
: themeController
|
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 14.rpx)),
|
SizedBox(height: 14.rpx)),
|
||||||
@@ -361,21 +341,16 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'女'.tr,
|
'女'.tr,
|
||||||
style: FlutterFlowTheme.of(
|
style: TextStyle(
|
||||||
context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: isFemaleGreyed
|
||||||
.override(
|
? themeController
|
||||||
fontFamily: 'Inter',
|
.currentColor.sc4
|
||||||
color: isFemaleGreyed
|
: themeController
|
||||||
? themeController
|
.currentColor.sc3,
|
||||||
.currentColor
|
fontSize: 26.rpx,
|
||||||
.sc4
|
letterSpacing: 0.0,
|
||||||
: themeController
|
),
|
||||||
.currentColor
|
|
||||||
.sc3,
|
|
||||||
fontSize: 26.rpx,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
].divide(
|
].divide(
|
||||||
SizedBox(height: 14.rpx)),
|
SizedBox(height: 14.rpx)),
|
||||||
@@ -429,20 +404,15 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
personController.dateTime!)
|
personController.dateTime!)
|
||||||
: '人员资料.生日输入提示'.tr,
|
: '人员资料.生日输入提示'.tr,
|
||||||
textAlign: TextAlign.right,
|
textAlign: TextAlign.right,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Readex Pro',
|
||||||
.override(
|
color: personController.dateTime != null
|
||||||
fontFamily: 'Readex Pro',
|
? themeController.currentColor.sc3
|
||||||
color: personController.dateTime !=
|
: themeController.currentColor.sc4,
|
||||||
null
|
fontSize:
|
||||||
? themeController
|
AppConstants().normal_text_fontSize,
|
||||||
.currentColor.sc3
|
letterSpacing: 0,
|
||||||
: themeController
|
),
|
||||||
.currentColor.sc4,
|
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -481,14 +451,11 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
},
|
},
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Colors.transparent, // 隐藏输入文字
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
),
|
||||||
Colors.transparent, // 隐藏输入文字
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -496,17 +463,14 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: '身高输入提示'.tr,
|
hintText: '身高输入提示'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -525,9 +489,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -536,9 +497,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -556,16 +514,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
: Text(
|
: Text(
|
||||||
'${height}cm',
|
'${height}cm',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc3,
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@@ -607,14 +562,11 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
},
|
},
|
||||||
autofocus: false,
|
autofocus: false,
|
||||||
obscureText: false,
|
obscureText: false,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Colors.transparent, // 隐藏输入文字
|
||||||
fontFamily: 'Inter',
|
letterSpacing: 0.0,
|
||||||
color:
|
),
|
||||||
Colors.transparent, // 隐藏输入文字
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
cursorColor:
|
cursorColor:
|
||||||
themeController.currentColor.sc3,
|
themeController.currentColor.sc3,
|
||||||
@@ -622,17 +574,14 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
fillColor: Colors.transparent,
|
fillColor: Colors.transparent,
|
||||||
isDense: true,
|
isDense: true,
|
||||||
hintText: '人员资料.体重输入提示'.tr,
|
hintText: '人员资料.体重输入提示'.tr,
|
||||||
hintStyle:
|
hintStyle: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.labelMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: AppConstants()
|
),
|
||||||
.normal_text_fontSize,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color: Color(0x00000000),
|
color: Color(0x00000000),
|
||||||
@@ -651,9 +600,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
),
|
),
|
||||||
errorBorder: OutlineInputBorder(
|
errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -662,9 +608,6 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
focusedErrorBorder:
|
focusedErrorBorder:
|
||||||
OutlineInputBorder(
|
OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
borderSide: BorderSide(
|
||||||
color:
|
|
||||||
FlutterFlowTheme.of(context)
|
|
||||||
.error,
|
|
||||||
width: 1.rpx,
|
width: 1.rpx,
|
||||||
),
|
),
|
||||||
borderRadius:
|
borderRadius:
|
||||||
@@ -682,16 +625,13 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
: Text(
|
: Text(
|
||||||
'${weight}kg',
|
'${weight}kg',
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style:
|
style: TextStyle(
|
||||||
FlutterFlowTheme.of(context)
|
fontFamily: 'Inter',
|
||||||
.bodyMedium
|
color: themeController
|
||||||
.override(
|
.currentColor.sc3,
|
||||||
fontFamily: 'Inter',
|
fontSize: AppConstants()
|
||||||
color: themeController
|
.normal_text_fontSize,
|
||||||
.currentColor.sc3,
|
),
|
||||||
fontSize: AppConstants()
|
|
||||||
.normal_text_fontSize,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
@@ -709,14 +649,12 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
alignment: AlignmentDirectional(0, 0),
|
alignment: AlignmentDirectional(0, 0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料.疾病标题'.tr,
|
'人员资料.疾病标题'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: Color(0xFFF3F4F5),
|
||||||
fontFamily: 'Inter',
|
fontSize: 30.rpx,
|
||||||
color: Color(0xFFF3F4F5),
|
letterSpacing: 0.0,
|
||||||
fontSize: 30.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -795,14 +733,12 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
'人员资料.提示'.tr,
|
'人员资料.提示'.tr,
|
||||||
style: FlutterFlowTheme.of(context)
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontFamily: 'Inter',
|
||||||
.override(
|
color: themeController.currentColor.sc4,
|
||||||
fontFamily: 'Inter',
|
fontSize: 26.rpx,
|
||||||
color: themeController.currentColor.sc4,
|
letterSpacing: 0.0,
|
||||||
fontSize: 26.rpx,
|
),
|
||||||
letterSpacing: 0.0,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
].divide(SizedBox(width: 23.rpx)),
|
].divide(SizedBox(width: 23.rpx)),
|
||||||
@@ -848,12 +784,12 @@ class _UpdatePageState extends State<UpdatePersonPage> {
|
|||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
title,
|
title,
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
style: TextStyle(
|
||||||
fontFamily: 'Inter',
|
fontFamily: 'Inter',
|
||||||
color: const Color(0xFFC2CED7),
|
color: const Color(0xFFC2CED7),
|
||||||
fontSize: 30.rpx,
|
fontSize: 30.rpx,
|
||||||
letterSpacing: 0.0,
|
letterSpacing: 0.0,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(8.rpx),
|
borderRadius: BorderRadius.circular(8.rpx),
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user