This commit is contained in:
wyf
2025-06-06 09:23:23 +08:00
parent bc86cf7d78
commit 54ad7c18e6
7 changed files with 543 additions and 244 deletions

View File

@@ -1040,6 +1040,7 @@ class _HomePageState extends State<HomePage> {
);
List stateModule = [];
String currentTime = "";
String goalMac = targetDevice?['mac'];
return DynamicReportDetailWidget(
key: ValueKey(
'${targetDevice!['mac']}_${homeController.model.type}'), // 添加唯一key
@@ -1086,6 +1087,8 @@ class _HomePageState extends State<HomePage> {
stateModule[j]['onto'] = true;
stateModule[j]['time'] =
currentTime;
stateModule[j]['mac'] =
goalMac;
return SleepDataModuleWidget(
data: stateModule[j],
);