Răsfoiți Sursa

Merge branch 'master' of http://git.ius.plus:88/Project-Wing/fis_lib_measure

guanxinyi 1 an în urmă
părinte
comite
0e21b198bf
1 a modificat fișierele cu 16 adăugiri și 2 ștergeri
  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: