瀏覽代碼

remove some prints

melon.yin 2 年之前
父節點
當前提交
8fb6893d4b

+ 0 - 1
lib/process/primitives/location.dart

@@ -53,7 +53,6 @@ class Location extends MeasureItem<LocationFeature> {
     // TODO: 判断是否当前area
     // 转换为Area逻辑位置
     final point = args.toAreaLogicPoint();
-    print(args.hostVisualArea!.mode.modeType);
     handleTissue(args, point);
     handleTissueTM(args.hostVisualArea!.mode.modeType, point);
     if (args.hostVisualArea != null) {

+ 0 - 1
lib/process/primitives/ray.dart

@@ -132,7 +132,6 @@ class RayFeature extends MeasureItemFeature {
         drawCustomId(canvas, size, twoPoint[0], idText);
         break;
       default:
-        print("Unkonw name RayFeature: $curItemName");
         break;
     }
     canvas.drawDashLine(twoPoint[0], twoPoint[1], 1, 10, paintPan);

+ 0 - 1
lib/process/primitives/single_straightline.dart

@@ -28,7 +28,6 @@ class SingleStraightLine extends MeasureItem<SingleStraightLineFeature> {
     straightLine.feature = StraightLineHeartRateFeature(
         straightLine, point, point, straightLine.doCalculate,
         ifHorizontal: false);
-    print('SingleStraightLine.createHeartRate');
     return straightLine;
   }
 

+ 0 - 1
lib/process/workspace/measure_controller.dart

@@ -169,6 +169,5 @@ class MeasureController implements IMeasureController {
     Get.delete<IApplication>();
     _application = Get.put<IApplication>(app);
     _application!.isSingleFrame = dataChannel.imageCount == 1;
-    print("Add New" + _application.hashCode.toString());
   }
 }

+ 0 - 1
lib/view/measure/capture_image.dart

@@ -48,7 +48,6 @@ class MeasureImageCapturer {
       measureApplicationName: application.applicationName,
       features: features,
     );
-    print('measureResult.toDisplay()');
 
     await Future.delayed(const Duration(milliseconds: 10), () async {
       final RenderRepaintBoundary? boundary = globalKey.currentContext

+ 0 - 2
lib/view/measure/measure_tool.dart

@@ -139,8 +139,6 @@ class LeftSiderSelectMeasureState extends FState<LeftSiderSelectMeasure> {
   }
 
   void getItemMetaListChanged(sender, e) {
-    print('getItemMetaList changed');
-
     isCombo = false;
     measureData.getTopItemMetaList = measureData.getItemMetaList;
     measureData.getBottomItemMetaList = [];

+ 1 - 6
lib/view/measure/tool_chest_title.dart

@@ -146,7 +146,6 @@ class _LeftSiderTabBarState extends State<_LeftSiderTabBar>
     Future.delayed(const Duration(milliseconds: 500), () {
       application = Get.find<IApplication>();
       if (application.isSingleFrame) {
-        print(application.visuals);
         if (application.visuals.length > 1) {
           tabs = [i18nBook.measure.annotationTool.t]
               .map((e) => Center(child: Tab(text: e)))
@@ -172,7 +171,6 @@ class _LeftSiderTabBarState extends State<_LeftSiderTabBar>
 
   void onImageLoaded(Object sender, ExamImageInfo? e) {
     if (!mounted) return;
-    print('change image');
     initTab();
   }
 
@@ -180,7 +178,6 @@ class _LeftSiderTabBarState extends State<_LeftSiderTabBar>
     Future.delayed(const Duration(milliseconds: 300), () {
       application = Get.find<IApplication>();
       if (application.canMeasure) {
-        print(application.visuals.length);
         if (application.visuals.length > 1) {
           tabs = [i18nBook.measure.annotationTool.t]
               .map((e) => Center(child: Tab(text: e)))
@@ -227,9 +224,7 @@ class _LeftSiderTabBarState extends State<_LeftSiderTabBar>
       onTap: (int index) {
         try {
           measureHandler.changedTab = TagEnum.values[index];
-        } catch (e) {
-          print(e);
-        }
+        } catch (e) {}
       },
       tabs: tabs,
       controller: tabController,

+ 1 - 3
lib/view/paint/ai_patint_controller.dart

@@ -105,9 +105,7 @@ class AiPatintController extends GetxController {
         aiResults = '';
         state.aiResult.clear();
       }
-    } catch (e) {
-      print(e);
-    }
+    } catch (e) {}
   }
 
   /// 单帧图处理

+ 0 - 16
lib/view/result/results_panel.dart

@@ -78,22 +78,6 @@ class _MeasureResultPanelState extends State<MeasureResultPanel> {
       ),
     );
     return child;
-    return Draggable(
-      child: child,
-      feedback: Material(
-        color: Colors.transparent,
-        child: child,
-      ),
-      childWhenDragging: const SizedBox(),
-      onDragEnd: (details) {
-        final renderBox = context.findRenderObject()! as RenderBox;
-        print(context.mediaQuerySize);
-        // Application.resultPanelOffset = renderBox.globalToLocal(details.offset);
-      },
-      onDragUpdate: (details) {
-        // final renderBox = context.findRenderObject()! as RenderBox;
-      },
-    );
   }
 
   @override