更新睡眠报告
This commit is contained in:
@@ -44,10 +44,13 @@ class _SingleBlueteethDeviceCompoentWidgetState
|
||||
deviceData.mac = deviceData.deviceId.replaceAll(':', '');
|
||||
BleDeviceData device = deviceData;
|
||||
// blueteethBindController.currentDeviceMac = device.mac;
|
||||
device = blueteethBindController.model.betDevicelist!.firstWhere(
|
||||
(d) => d.mac == device.mac,
|
||||
orElse: () => device,
|
||||
);
|
||||
final match = blueteethBindController.model.betDevicelist!
|
||||
.firstWhereOrNull((d) => d.mac == device.mac);
|
||||
|
||||
if (match == null) {
|
||||
return Container();
|
||||
}
|
||||
device = match;
|
||||
return ClickableContainer(
|
||||
backgroundColor: themeController.currentColor.sc5,
|
||||
highlightColor: themeController.currentColor.sc21,
|
||||
|
||||
@@ -28,8 +28,8 @@ class CalibrationPage extends StatefulWidget {
|
||||
class _CalibrationPageState extends State<CalibrationPage> {
|
||||
DeviceCalibrationController deviceCalibrationController = Get.find();
|
||||
BlueteethBindController blueteethBindController = Get.find();
|
||||
int flag = 0; //默认没有开始校准过
|
||||
bool exit = false;
|
||||
int flag = 0; //默认没有开始校准过 0没有开始
|
||||
bool exit = false;
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
@@ -86,7 +86,6 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
||||
Positioned(
|
||||
left: 0,
|
||||
child: returnIconButtomAddCallback(() {
|
||||
|
||||
if (flag != 0) {
|
||||
try {
|
||||
showConfirmDialog(
|
||||
@@ -114,7 +113,7 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
||||
if (exit) {
|
||||
Get.back();
|
||||
}
|
||||
},enableBack:exit ),
|
||||
}, enableBack: exit),
|
||||
),
|
||||
if (widget.type == 1)
|
||||
Positioned(
|
||||
@@ -561,11 +560,11 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
||||
borderRadius:
|
||||
AppConstants().button_container_radius, // 圆角半径
|
||||
onTap: () async {
|
||||
flag = 1;
|
||||
if (deviceCalibrationController.complete) {
|
||||
showConfirmDialog(
|
||||
context, Container(), "校准已经完成,是否重新开始校准?",
|
||||
onConfirm: () {
|
||||
flag = 1;
|
||||
BlueteethBindController
|
||||
blueteethBindController = Get.find();
|
||||
deviceCalibrationController.process.value = 0;
|
||||
@@ -723,6 +722,7 @@ class _CalibrationPageState extends State<CalibrationPage> {
|
||||
return;
|
||||
});
|
||||
} else {
|
||||
flag = 1;
|
||||
BlueteethBindController
|
||||
blueteethBindController = Get.find();
|
||||
String serviceAddress =
|
||||
|
||||
@@ -369,55 +369,56 @@ class _DeviceSharePageState extends State<DeviceSharePage> {
|
||||
),
|
||||
),
|
||||
),
|
||||
Padding(
|
||||
padding:
|
||||
EdgeInsetsDirectional.fromSTEB(0, 379.rpx, 0, 0),
|
||||
child: CustomCard(
|
||||
borderRadius:
|
||||
AppConstants().button_container_radius, // 圆角半径
|
||||
onTap: () async {
|
||||
// TopSlideNotification.show(context,
|
||||
// text: "待开发功能".tr);
|
||||
LoginController loginController = Get.find();
|
||||
// loginController.fluwx.share(WeChatShareTextModel(
|
||||
// "太和e护分享链接",
|
||||
// scene: WeChatScene.session));
|
||||
final Uint8List data = await rootBundle.load('assets/img/camera.png').then((bd) => bd.buffer.asUint8List());
|
||||
loginController.fluwx.share(WeChatShareWebPageModel("taihecare://goods?id=123",title: "标题",description: "描述",thumbData: data));
|
||||
},
|
||||
colors: [
|
||||
// 渐变色
|
||||
themeController.currentColor.sc1,
|
||||
themeController.currentColor.sc2,
|
||||
],
|
||||
child: Container(
|
||||
width: MediaQuery.sizeOf(context).width * 0.66,
|
||||
height: MediaQuery.sizeOf(context).height * 0.055,
|
||||
constraints: BoxConstraints(
|
||||
minWidth: 500.rpx,
|
||||
minHeight: 90.rpx,
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
'微信好友一键分享'.tr,
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.bodyMedium
|
||||
.override(
|
||||
color: themeController.currentColor.sc3,
|
||||
fontFamily: 'Inter',
|
||||
fontSize: AppConstants()
|
||||
.normal_text_fontSize, // 自定义字体大小
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(width: 17.rpx)),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
// Padding(
|
||||
// padding:
|
||||
// EdgeInsetsDirectional.fromSTEB(0, 379.rpx, 0, 0),
|
||||
// child: CustomCard(
|
||||
// borderRadius:
|
||||
// AppConstants().button_container_radius, // 圆角半径
|
||||
// onTap: () async {
|
||||
// // TopSlideNotification.show(context,
|
||||
// // text: "待开发功能".tr);
|
||||
// LoginController loginController = Get.find();
|
||||
// // loginController.fluwx.share(WeChatShareTextModel(
|
||||
// // "太和e护分享链接",
|
||||
// // scene: WeChatScene.session));
|
||||
// final Uint8List data = await rootBundle.load('assets/img/camera.png').then((bd) => bd.buffer.asUint8List());
|
||||
// loginController.fluwx.share(WeChatShareWebPageModel("taihecare://goods?id=123",title: "标题",description: "描述",thumbData: data));
|
||||
// },
|
||||
// colors: [
|
||||
// // 渐变色
|
||||
// themeController.currentColor.sc1,
|
||||
// themeController.currentColor.sc2,
|
||||
// ],
|
||||
// child: Container(
|
||||
// width: MediaQuery.sizeOf(context).width * 0.66,
|
||||
// height: MediaQuery.sizeOf(context).height * 0.055,
|
||||
// constraints: BoxConstraints(
|
||||
// minWidth: 500.rpx,
|
||||
// minHeight: 90.rpx,
|
||||
// ),
|
||||
// child: Row(
|
||||
// mainAxisSize: MainAxisSize.max,
|
||||
// mainAxisAlignment: MainAxisAlignment.center,
|
||||
// children: [
|
||||
// Text(
|
||||
// '微信好友一键分享'.tr,
|
||||
// style: FlutterFlowTheme.of(context)
|
||||
// .bodyMedium
|
||||
// .override(
|
||||
// color: themeController.currentColor.sc3,
|
||||
// fontFamily: 'Inter',
|
||||
// fontSize: AppConstants()
|
||||
// .normal_text_fontSize, // 自定义字体大小
|
||||
// letterSpacing: 0.0,
|
||||
// ),
|
||||
// ),
|
||||
// ].divide(SizedBox(width: 17.rpx)),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user