[英]How to draw a rectangle with one side as a half circle in flutter?
這就是我想要實現的目標(請原諒不完美,但你明白了):
我看到一些使用 Clipper 的教程,但它們似乎沒有達到我想要的效果,我需要使用容器來繪制它,因為我想在上面放置一些文本。
class DrawCustomCircle extends CustomClipper<Path> {
@override
Path getClip(Size size) {
final Path path = new Path();
...
return path;
}
@override
bool shouldReclip(CustomClipper<Path> oldClipper) {
return true;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.