Загрузил(а) файлы в 'flutter/lib'
This commit is contained in:
parent
749afe3e6e
commit
0a0698bd01
|
@ -246,6 +246,7 @@ class CurvePainter extends CustomPainter {
|
||||||
|
|
||||||
void _drawDFS(Canvas canvas) {
|
void _drawDFS(Canvas canvas) {
|
||||||
if (dfsAccessTable != null) {
|
if (dfsAccessTable != null) {
|
||||||
|
print("nn");
|
||||||
for (int i = 0; i < dfsAccessTable!.length; i++) {
|
for (int i = 0; i < dfsAccessTable!.length; i++) {
|
||||||
if (dfsAccessTable![i]) {
|
if (dfsAccessTable![i]) {
|
||||||
_drawDot(canvas, _off[i + 1]!, 8, Colors.green.shade500);
|
_drawDot(canvas, _off[i + 1]!, 8, Colors.green.shade500);
|
||||||
|
@ -294,36 +295,3 @@ class CurvePainter extends CustomPainter {
|
||||||
return true;
|
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));
|
|
||||||
}*/
|
|
||||||
|
|
Loading…
Reference in New Issue