Pārlūkot izejas kodu

fix(measure): 移动端第三方图像屏蔽注释入口 #0013382

gavin.chen 1 gadu atpakaļ
vecāks
revīzija
b51cd97b24
1 mainītis faili ar 16 papildinājumiem un 2 dzēšanām
  1. 16 2
      lib/view/mobile_view/mobile_bottom_menu.dart

+ 16 - 2
lib/view/mobile_view/mobile_bottom_menu.dart

@@ -35,6 +35,7 @@ class _MobileBottomMenuState extends State<MobileBottomMenu> {
   late final playerController = Get.find<IPlayerController>();
 
   bool isCanMeasure = true;
+  bool isCanAnnotation = true;
 
   /// vid 是否正在播放
   bool isVidPlaying = false;
@@ -105,6 +106,19 @@ class _MobileBottomMenuState extends State<MobileBottomMenu> {
         ifShowMeasureBtn = true;
       });
     }
+
+    /// 是否允许注释(第三方图像屏蔽注释入口)
+    if (application.isThirdPart) {
+      isCanAnnotation = false;
+      setState(() {
+        ifShowAnnotationBtn = false;
+      });
+    } else {
+      isCanAnnotation = true;
+      setState(() {
+        ifShowAnnotationBtn = true;
+      });
+    }
   }
 
   bool singleFrame = true;
@@ -119,14 +133,14 @@ class _MobileBottomMenuState extends State<MobileBottomMenu> {
         setState(() {
           ifShowProgressBar = !singleFrame;
           ifShowMeasureBtn = isCanMeasure;
-          ifShowAnnotationBtn = true;
+          ifShowAnnotationBtn = isCanAnnotation;
         });
         break;
       case MobileMeasureMode.measureMode:
         setState(() {
           ifShowProgressBar = false;
           ifShowMeasureBtn = false;
-          ifShowAnnotationBtn = true;
+          ifShowAnnotationBtn = isCanAnnotation;
         });
         break;
       case MobileMeasureMode.annotationMode: