How to have a curve corner at the top and right and left
in flutters like the file attached using clip-path or any other widget? I am trying to curve the corner in the container widget with a child called clip-path. Please anyone can guide me. Is there any other widget to curve the corner? This cannot be done with the border-radius in box decoration.
class ClipPathClass extends CustomClipper<Path> {
@override
Path getClip(Size size) {
Path path = Path();
path.moveTo(size.width / 2, 0);
path.quadraticBezierTo(size.width, size.height, size.width, size.height);
path.lineTo(size.width, size.height);
path.lineTo(0, size.height);
path.close();
return path;
}
@override
bool shouldReclip(covariant CustomClipper<Path> oldClipper) => false;
}
you can try this with some changes I think you might get it: