// Custom Clipper for the curved purple background import 'package:flutter/cupertino.dart'; class CustomShapeClipper extends CustomClipper { final double value1; final double value2; final double value3; CustomShapeClipper({ this.value1 = 60, this.value2 = 4, // center this.value3 = 200, // curve right }); @override Path getClip(Size size) { Path path = Path(); path.lineTo(0, size.height - value1); path.quadraticBezierTo(size.width / value2, size.height, size.width, size.height - value3); path.lineTo(size.width, 0); path.close(); return path; } @override bool shouldReclip(CustomClipper oldClipper) => false; }