i am try to get a curve line just like the in Facebook comment session. This line.
Thanks
CodePudding user response:
You can try with this code:
Path path = Path();
path.moveTo(avatarRoot!.width / 2, 0);
path.cubicTo(
avatarRoot!.width / 2,
0,
avatarRoot!.width / 2,
padding!.top avatarChild!.height / 2,
avatarRoot!.width,
padding!.top avatarChild!.height / 2);
canvas.drawPath(path, _paint!);
You will need learn to use cubicTo
function