【发布时间】:2019-11-08 10:00:07
【问题描述】:
我正在尝试在这张图片中绘制形状 The shape that I want to draw 把我的代码不能得到相同的结果:
CustomShapeClipper extends CustomClipper<Path> {
@override
Path getClip(Size size) {
final Path path = Path()
..moveTo(0, size.height * 0.6)
..quadraticBezierTo(
size.width * 0.7 , size.height - (size.height * 0.1) ,
size.width, size.height * 0.8
)
..lineTo(size.width, 0)
..lineTo(0, 0)
..close();
return path;
}
@override
bool shouldReclip(CustomClipper oldClipper) => true;
}
我得到了这个结果My Result
请指导我。
提前致谢
【问题讨论】: