更新样式
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user