flutter draw container with curved line code example

Example: flutter code for curvy hesding paint

//amazing curvy heading
    path1.moveTo(size.width / 4, 0);
    path1.quadraticBezierTo(size.width / 4 + size.width / 20, size.height / 100,
        size.width / 4 + size.width / 20, size.height / 30);
    path1.lineTo(
        size.width / 4 + size.width / 20, size.height / 30 + size.height / 50);
    path1.quadraticBezierTo(size.width / 4 + size.width / 20,
        size.height / 11 + 5, size.width / 2, size.height / 10.5);
    path1.quadraticBezierTo(
        size.width - size.width / 4 - size.width / 20,
        size.height / 11 + 5,
        size.width - size.width / 4 - size.width / 20,
        size.height / 30 + size.height / 50);
    path1.lineTo(
        size.width - size.width / 4 - size.width / 20, size.height / 30);
    path1.quadraticBezierTo(
        0.7 * size.width, size.height / 100, size.width * 3 / 4, 0);

Tags:

Misc Example