I am using Custom Clipper while creating these two widgets in Flutter, but there is a problem, how can I create it?
Update: can be used to crop from right side
class CustomRightClipper extends CustomClipper<Path> {
@override
Path getClip(Size size) {
final path = Path();
path.lineTo(size.width / 2, 0.0);
path.lineTo(size.width * 0.37, 30);
path.lineTo(0, 30);
path.close();
return path;
}
@override
bool shouldReclip(CustomRightClipper oldClipper) => true;
}

For path will be like below, you can pass the gap with parameters or use relative width.
I will suggest to use
shapeparameter on different button. The extend OutlinedBorder or ShapeBorder and provide this same path.