import 'package:flutter/cupertino.dart'; class WaveClipper extends CustomClipper { @override Path getClip(Size size) { final Path path = Path(); path.lineTo(0, size.height - 50); path.quadraticBezierTo( size.width / 2, size.height - 25, size.width, size.height - 50); path.lineTo(size.width, 0); path.close(); return path; } @override bool shouldReclip(covariant CustomClipper oldClipper) => false; }