修改日报渲染等级顺序

This commit is contained in:
wyf
2025-07-19 14:56:35 +08:00
parent a949d5b4fe
commit 194ffb4080
2 changed files with 3 additions and 3 deletions

View File

@@ -56,8 +56,8 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
Map<String, dynamic>.from(report.value['info']['color']);
var levelMap =
Map<String, dynamic>.from(report.value['info']['level']);
for (var prefix in ['G', 'R', 'Y']) {
//修改渲染等级顺序
for (var prefix in ['G', 'Y', 'R']) {
List<String> keys =
colorMap.keys.where((k) => k.startsWith(prefix)).toList();
keys.sort(); // G1, G2, G3

View File

@@ -134,7 +134,7 @@ class _SleepCardState extends State<SleepCard> with TickerProviderStateMixin {
),
);
} catch (e) {
es.EasyDartModule.logger.error("打鼾监测绘制异常${e}");
es.EasyDartModule.logger.error("数据卡片渲染异常${e}");
return Container();
}
}