diff --git a/lib/pages/sleep_report/component/TrendDataTablePage.dart b/lib/pages/sleep_report/component/TrendDataTablePage.dart index 435f783..04e9845 100644 --- a/lib/pages/sleep_report/component/TrendDataTablePage.dart +++ b/lib/pages/sleep_report/component/TrendDataTablePage.dart @@ -56,7 +56,7 @@ class _TrendDataTablePageState extends State { 14.rpx, 10.rpx, 14.rpx, 10.rpx), // borderRadius: 0.rpx, onTap: () { - if (AppConstants().ent_type == APPPackageType.MHT) { + if (AppConstants().ent_type == APPPackageType.MHT.code) { showTipDialog( context, Container( @@ -76,20 +76,20 @@ class _TrendDataTablePageState extends State { ], ); } else { - showTipDialog( - context, - Container( - child: Text( - widget.tipText, - style: TextStyle( - fontSize: 26.rpx, - color: themeController.currentColor.sc3, + showTipDialog( + context, + Container( + child: Text( + widget.tipText, + style: TextStyle( + fontSize: 26.rpx, + color: themeController.currentColor.sc3, + ), ), ), - ), - backgroundColor: themeController.currentColor.sc17, - colors: AppConstants().thNormalButton, - ); + backgroundColor: themeController.currentColor.sc17, + colors: AppConstants().thNormalButton, + ); } }, child: Container(