I have a make my Custom Clipper (Pentagon Shape) but I need to make all of the corners round a little bit.
Here's my Clipper Code:
class Pentagon extends CustomClipper<Path> {
@override
Path getClip(Size size) {
final path = Path();
path.lineTo(size.width * 0.5, 0);
path.lineTo(size.width, size.height * 0.38);
path.lineTo(size.width * 0.82, size.height);
path.lineTo(size.width * 0.18, size.height);
path.lineTo(0, size.height * 0.38);
path.lineTo(size.width * 0.5, 0);
path.close();
return path;
}
@override
bool shouldReclip(CustomClipper<Path> oldClipper) => false;
}
question from:
https://stackoverflow.com/questions/65914890/flutter-clipper-radius 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…