Browse Source

fix(measure): 魔盒Vid不显示测量项配置 #0009596 Review by baka

gavin.chen 2 years ago
parent
commit
5d5e74616a
1 changed files with 9 additions and 2 deletions
  1. 9 2
      lib/view/measure/measure_view.dart

+ 9 - 2
lib/view/measure/measure_view.dart

@@ -409,6 +409,9 @@ class _MeasureLeftBoardState extends State<_MeasureLeftBoard> {
   /// 是否显示颈动脉2D指定的测量项
   bool showCarotid2DSelectMeasure = false;
 
+  /// 是否为魔盒的Vid
+  bool isThirdPart = Get.find<IApplication>().isThirdPart;
+
   /// 是否显示测量项
   bool hideMeasureItems = false;
 
@@ -433,7 +436,10 @@ class _MeasureLeftBoardState extends State<_MeasureLeftBoard> {
 
   ///图像发生变化
   void _onChangeImage(sender, e) {
-    setState(() {});
+    final application = Get.find<IApplication>();
+    setState(() {
+      isThirdPart = application.isThirdPart;
+    });
   }
 
   @override
@@ -497,7 +503,8 @@ class _MeasureLeftBoardState extends State<_MeasureLeftBoard> {
       children: [
         FOffstage(
           offstage: hideMeasureItems,
-          child: LeftSiderHold(ifHideConfig: showCarotid2DSelectMeasure),
+          child: LeftSiderHold(
+              ifHideConfig: showCarotid2DSelectMeasure || isThirdPart),
         ),
         FOffstage(
           offstage: hideMeasureItems || hideCommentTab,