Flutter Clip Path

559 Views Asked by At

Logo I want to create with clippath

Logo I want to create with clippath

I tried to make the logo above but it didn't work. How to do it properly?

This is what i made with clippath,stack,Transform.rotate and positioned widgets and clip path. I dont have permission to put whole code

Logo

Clip Path:

class MyClipper  extends CustomClipper<Path> {
  @override
  Path getClip(Size size) {
    var path = new Path();
    path.lineTo(0, size.height - 150);
    path.quadraticBezierTo(size.width / 2, size.height, size.width, size.height - 150);
    path.lineTo(size.width, size.height );
    path.lineTo(size.width, 0);
    return path;
  }

  @override
  bool shouldReclip(CustomClipper<Path> oldClipper) => true;
}

Can anyone help me to understand how to do this image White space only i want to draw but i dont know how to do ClipPath

0

There are 0 best solutions below