更新睡眠报告
This commit is contained in:
@@ -7,6 +7,7 @@ import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/tool/ClickableContainer.dart';
|
||||
import 'package:vbvs_app/pages/device_bind/componnet/bind_dialog.dart';
|
||||
import 'package:vbvs_app/pages/sleep_report/chart/StatusBarWithIndicator.dart';
|
||||
import 'package:EasyDartModule/EasyDartModule.dart' as es;
|
||||
|
||||
class SkinPercentWidget extends StatefulWidget {
|
||||
var sleepReport;
|
||||
@@ -34,7 +35,8 @@ class _SkinPercentWidgetState extends State<SkinPercentWidget> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (widget.sleepReport == null ||
|
||||
try {
|
||||
if (widget.sleepReport == null ||
|
||||
widget.sleepReport['sicp'] == null ||
|
||||
widget.sleepReport['sicp'].isEmpty) {
|
||||
return Container();
|
||||
@@ -134,5 +136,10 @@ class _SkinPercentWidgetState extends State<SkinPercentWidget> {
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
} catch (e) {
|
||||
es.EasyDartModule.logger.error("打鼾监测绘制异常${e}");
|
||||
return Container();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user