1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
// SPDX-License-Identifier: Apache-2.0
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
class Arrowpaint extends CustomPainter{
@override
void paint(Canvas canvas, Size size) {
var paint = Paint();
var path = Path();
paint.color = Colors.grey;
paint.style = PaintingStyle.stroke;
paint.strokeWidth = 1;
path.moveTo(0, size.height*0.8);
path.lineTo(size.width*0.8, size.height*0.8);
path.lineTo(size.width*0.8, size.height*0.2);
path.moveTo(size.width*0.75, size.height*0.25);
path.lineTo(size.width*0.8, size.height*0.15);
path.lineTo(size.width*0.85, size.height*0.25);
canvas.drawPath(path, paint);
// TODO: implement paint
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
// TODO: implement shouldRepaint
// throw UnimplementedError();
return false;
}
}
class Arrowpaint2 extends CustomPainter{
@override
void paint(Canvas canvas, Size size) {
var paint = Paint();
var path = Path();
paint.color = Colors.grey;
paint.style = PaintingStyle.stroke;
paint.strokeWidth = 1;
path.moveTo(size.width, size.height*0.8);
path.lineTo(size.width*0.2, size.height*0.8);
path.lineTo(size.width*0.2, size.height*0.2);
path.moveTo(size.width*0.15, size.height*0.25);
path.lineTo(size.width*0.2, size.height*0.15);
path.lineTo(size.width*0.25, size.height*0.25);
canvas.drawPath(path, paint);
// TODO: implement paint
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
// TODO: implement shouldRepaint
// throw UnimplementedError();
return false;
}
}
class simplearrow extends CustomPainter{
@override
void paint(Canvas canvas, Size size) {
var paint = Paint();
var path = Path();
paint.color = Colors.grey;
paint.strokeWidth = 1;
paint.style = PaintingStyle.stroke;
path.moveTo(0, size.height*0.5);
path.lineTo(size.width*0.8, size.height*0.5);
path.moveTo(size.width*0.75, size.height*0.40);
path.lineTo(size.width*0.85, size.height*0.5);
path.lineTo(size.width*0.75, size.height*0.60);
canvas.drawPath(path, paint);
// TODO: implement paint
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
// TODO: implement shouldRepaint
return false;
}
}
|