修复眠花糖设置闹钟无效
This commit is contained in:
@@ -106,53 +106,53 @@ class _VitalSignsSensorState extends State<VitalSignsSensorPage> {
|
||||
left: 0.rpx,
|
||||
child: returnIconButtomNew(),
|
||||
),
|
||||
// Positioned(
|
||||
// right: 0.rpx,
|
||||
// child: ClickableContainer(
|
||||
// backgroundColor: Colors.transparent,
|
||||
// highlightColor: Colors.transparent,
|
||||
// padding: EdgeInsets.symmetric(
|
||||
// horizontal: 30.rpx, vertical: 30.rpx),
|
||||
// onTap: () {
|
||||
// // TopSlideNotification.show(context);
|
||||
// //检测蓝牙是否开启,没有开启提示开启蓝牙
|
||||
// //如果已经开启,则进行x秒的蓝牙扫描
|
||||
// BluetoothHelper.listenBluetoothState((isOn) {
|
||||
// mhtBlueToothController.model.bluetooth = isOn;
|
||||
// mhtBlueToothController.updateAll();
|
||||
// if (!isOn) {
|
||||
// mhtBlueToothController.model.blueRawData = [];
|
||||
// mhtBlueToothController
|
||||
// .model.deviceDataStatus = [];
|
||||
// mhtBlueToothController.updateAll();
|
||||
// _showBluetoothNotEnabledDialog();
|
||||
// }
|
||||
// });
|
||||
// _checkBluetoothPermission();
|
||||
// },
|
||||
// child: Obx(() {
|
||||
// return SizedBox(
|
||||
// width: 34.rpx,
|
||||
// height: mhtBlueToothController.isScanning.value
|
||||
// ? 34.rpx
|
||||
// : 24.rpx,
|
||||
// child: mhtBlueToothController.isScanning.value
|
||||
// ? CircularProgressIndicator(
|
||||
// strokeWidth: 2,
|
||||
// valueColor:
|
||||
// AlwaysStoppedAnimation<Color>(
|
||||
// themeController.currentColor.sc3,
|
||||
// ),
|
||||
// )
|
||||
// : SvgPicture.asset(
|
||||
// 'assets/img/icon/upgrade.svg',
|
||||
// fit: BoxFit.cover,
|
||||
// color: Colors.white,
|
||||
// ),
|
||||
// );
|
||||
// }),
|
||||
// ),
|
||||
// ),
|
||||
Positioned(
|
||||
right: 0.rpx,
|
||||
child: ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
highlightColor: Colors.transparent,
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 30.rpx, vertical: 30.rpx),
|
||||
onTap: () {
|
||||
// TopSlideNotification.show(context);
|
||||
//检测蓝牙是否开启,没有开启提示开启蓝牙
|
||||
//如果已经开启,则进行x秒的蓝牙扫描
|
||||
BluetoothHelper.listenBluetoothState((isOn) {
|
||||
mhtBlueToothController.model.bluetooth = isOn;
|
||||
mhtBlueToothController.updateAll();
|
||||
if (!isOn) {
|
||||
mhtBlueToothController.model.blueRawData = [];
|
||||
mhtBlueToothController
|
||||
.model.deviceDataStatus = [];
|
||||
mhtBlueToothController.updateAll();
|
||||
_showBluetoothNotEnabledDialog();
|
||||
}
|
||||
});
|
||||
_checkBluetoothPermission();
|
||||
},
|
||||
child: Obx(() {
|
||||
return SizedBox(
|
||||
width: 34.rpx,
|
||||
height: mhtBlueToothController.isScanning.value
|
||||
? 34.rpx
|
||||
: 24.rpx,
|
||||
child: mhtBlueToothController.isScanning.value
|
||||
? CircularProgressIndicator(
|
||||
strokeWidth: 2,
|
||||
valueColor:
|
||||
AlwaysStoppedAnimation<Color>(
|
||||
themeController.currentColor.sc3,
|
||||
),
|
||||
)
|
||||
: SvgPicture.asset(
|
||||
'assets/img/icon/upgrade.svg',
|
||||
fit: BoxFit.cover,
|
||||
color: Colors.white,
|
||||
),
|
||||
);
|
||||
}),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user