我想把这个设计翻成垂直的.在这里曲线的位置在底部,我希望这条曲线位于顶部.那么,我应该更改哪个值呢?我已经在下面分享了我的照片和代码.
class ClipPathClass extends CustomClipper<Path> {
@override
Path getClip(Size size) {
Path path = Path();
path.lineTo(0.0, size.height);
double x = 0;
double y = size.height;
double yControlPoint = size.height * .88;
double increment = size.width / 15;
while (x < size.width) {
path.quadraticBezierTo(
x + increment / 2, yControlPoint, x + increment, y);
x += increment;
}
path.lineTo(size.width, 0.0);
path.close();
return path;
}
@override
bool shouldReclip(CustomClipper<Path> oldClipper) => false;
}