I need to implement shape like image below.
After I research about it, I found CustomPaiter and try to implement for awhile. I get this result.
I have no idea how to round corner of shape. Has anyone can guide me about it ?
My painter class.
class NamePainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
Paint paint = Paint();
paint.color = Colors.white;
var path = Path();
path.moveTo(size.width * 0.2, 0);
path.lineTo(size.width * 0.1, size.height / 2);
path.lineTo(size.width * 0.2, size.height);
path.lineTo(size.width, size.height);
path.lineTo(size.width, 0);
path.close();
canvas.drawPath(path, paint);
}
@override
bool shouldRepaint(covariant CustomPainter oldDelegate) {
return false;
}
}


Here is your Clip Code... and also use Shape Maker to design such layout and you will get clip code