I need to change the arrow head with double line.
Asked
Active
Viewed 137 times
0
-
You need to share the code that you did so far? – salihgueler Mar 10 '22 at 09:51
-
void drawArrow(Canvas canvas, Offset start, Offset end, Paint painter){ final arrowPainter = Paint() ..color =painter.color ..strokeWidth =painter.strokeWidth ..style = PaintingStyle.stroke; canvas.drawLine(start, end, painter); final _pathOffset = painter.strokeWidth / 15; var path = Path() ..lineTo(-15 * _pathOffset, 10 * _pathOffset) ..lineTo(-15 * _pathOffset, -10 * _pathOffset) ..close(); canvas.save(); canvas.translate(end.dx, end.dy); canvas.rotate((end - start).direction); canvas.drawPath(path, arrowPainter); canvas.restore(); } – Marlen Franto Mar 10 '22 at 14:04
-
@MarlenFranto You should add your code to your question by editing it. And please format it using the code tags. – Er1 Mar 11 '22 at 09:51