更新睡眠报告
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,
|
||||
|
||||
Reference in New Issue
Block a user