import 'package:flutter/material.dart'; class CustomBottomClipper extends CustomClipper { @override Path getClip(Size size) { Path path = Path(); path.lineTo(0, size.height - 40); path.quadraticBezierTo( size.width / 2, size.height + 40, size.width, size.height - 40); path.lineTo(size.width, 0); path.close(); return path; } @override bool shouldReclip(CustomClipper oldClipper) => false; }