更新样式

This commit is contained in:
wyf
2025-12-01 15:41:34 +08:00
parent 991bf97fd1
commit 1cc26aa46d
18 changed files with 502 additions and 677 deletions

View File

@@ -83,8 +83,13 @@ class _BreatheCardState extends State<BreatheCard>
return Container();
}
// List data = widget.sleepReport['brs'] ?? [];
List data = widget.sleepReport['brs'] ?? [];
data = data.where((item) {
return item['show'] != false; // 只保留 show 不为 false 的元素
}).toList(); // 添加 .toList()
return Container(
width: double.infinity,
decoration: BoxDecoration(