From 0a0698bd013bb3dbe1611c94045aedc5b79df8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=BE=D1=80=D0=BE=D0=B7=D0=BE=D0=B2=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B9?= Date: Wed, 10 Nov 2021 12:28:24 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D0=BB(=D0=B0)=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20'flu?= =?UTF-8?q?tter/lib'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flutter/lib/curve_painter.dart | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/flutter/lib/curve_painter.dart b/flutter/lib/curve_painter.dart index 4363d0b..2680cc7 100644 --- a/flutter/lib/curve_painter.dart +++ b/flutter/lib/curve_painter.dart @@ -246,6 +246,7 @@ class CurvePainter extends CustomPainter { void _drawDFS(Canvas canvas) { if (dfsAccessTable != null) { + print("nn"); for (int i = 0; i < dfsAccessTable!.length; i++) { if (dfsAccessTable![i]) { _drawDot(canvas, _off[i + 1]!, 8, Colors.green.shade500); @@ -294,36 +295,3 @@ class CurvePainter extends CustomPainter { return true; } } - -/*void _pringArr(Canvas canvas, Size size) { - TextSpan textSpan; - TextPainter textPainter; - Path path; - - // The arrows usually looks better with rounded caps. - Paint paint = Paint() - ..color = Colors.black - ..style = PaintingStyle.stroke - ..strokeCap = StrokeCap.round - ..strokeJoin = StrokeJoin.round - ..strokeWidth = 3.0; - - /// Draw a single arrow. - path = Path(); - path.moveTo(size.width * 0.25, size.height * 0.10); - path.relativeCubicTo(0, 0, size.width * 0.25, 50, size.width * 0.5, 0); - path = ArrowPath.make(path: path); - canvas.drawPath(path, paint..color = Colors.blue); - - textSpan = const TextSpan( - text: 'Single arrow', - style: TextStyle(color: Colors.blue), - ); - textPainter = TextPainter( - text: textSpan, - textAlign: TextAlign.center, - textDirection: TextDirection.ltr, - ); - textPainter.layout(minWidth: size.width); - textPainter.paint(canvas, Offset(0, size.height * 0.06)); -}*/