|
@@ -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:
|