I am trying to create a curve with the Flutter CustomPainter. However, when I try to chain them, the resulting curve has some annoying edges. How can I achieve a smooth curve?
Resulting Curve
Annoying edge
canvas.translate(0, size.height / 2);
final Paint wavePainter = Paint()
..color = Color(0xFF1f58a1)
..strokeWidth = 8
..style = PaintingStyle.stroke;
double high = size.height;
double offset = size.width / 13;
Path path = Path()
..moveTo(0, 0)
..quadraticBezierTo(offset, -high / 3, 2 * offset, 0)
..quadraticBezierTo(4 * offset, high / 2, 5 * offset, 0)
..quadraticBezierTo(offset * 7, -high, offset * 8, 2)
..quadraticBezierTo(offset * 9, high / 2, offset * 11, 0)
..quadraticBezierTo(offset * 12, -high / 3, offset * 13, 0);
canvas.drawPath(path, wavePainter);


