Browse Source

移除心电图像蓝色线的绘制

loki.wu 9 months ago
parent
commit
b15153bccd

+ 9 - 9
lib/pages/medical/widgets/twelve_ecg_view/widgets/grid_background_printer_for_five.dart

@@ -66,16 +66,16 @@ class GridBackgroundPainterForFive extends CustomPainter {
 
     for (int i = 0; i < 12; i++) {
       /// 绘制两根中心线
-      final centerLinePaint = Paint()
-        ..color = const Color.fromARGB(255, 1, 4, 148)
-        ..style = PaintingStyle.stroke
-        ..strokeWidth = 1.0;
+      // final centerLinePaint = Paint()
+      //   ..color = const Color.fromARGB(255, 1, 4, 148)
+      //   ..style = PaintingStyle.stroke
+      //   ..strokeWidth = 1.0;
 
-      canvas.drawLine(
-        Offset(0, size.height * i / 12),
-        Offset(size.width, size.height * i / 12),
-        centerLinePaint,
-      );
+      // canvas.drawLine(
+      //   Offset(0, size.height * i / 12),
+      //   Offset(size.width, size.height * i / 12),
+      //   centerLinePaint,
+      // );
       for (int j = 0; j < xGridNums; j++) {
         if (j % 125 == 0) {
           final offsetX = j * xGridSize;