I'm trying to draw a triangle in the bottom right of the page.
I've successfully created one in the top left doing like this:
void paint(Canvas canvas, Size size) {
// top left
final pathOrange = Path();
pathOrange.lineTo(0, size.height/3);
pathOrange.lineTo(size.width/1.5, 0);
pathOrange.close();
canvas.drawPath(pathOrange, _paintOrange);
}
But I can't find a way to do the same for the bottom right. I've read that apparently canvas is set to 0,0by default, but I don't seem to be able to instantiate it twice, otherwise I would change the initial start using canvas.translate.
I know that bottom-left coordinates are 0,size.height and top-right size.width,0but I just can't get the bottom right one.
That's what the result should be
And here what I've done
