Houshan-Basa/lib/ui/widgets/components/custom_bottom_clipper.dart

18 lines
448 B
Dart

import 'package:flutter/material.dart';
class CustomBottomClipper extends CustomClipper<Path> {
@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<Path> oldClipper) => false;
}