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)); -}*/