flutter自学交流群667186542,欢迎提问,
flutter 微商城开源地址:https://www.jianshu.com/p/66d223041c5d
import 'package:flutter/material.dart';
class MyClipper extends CustomClipper<Path> {
@override
Path getClip(Size size) {
var path = Path();
path.lineTo(0, size.height - 50);
path.quadraticBezierTo(
size.width / 2, size.height, size.width, size.height - 50);
path.lineTo(size.width, 0);
path.close();
return path;
}
@override
bool shouldReclip(CustomClipper<Path> oldClipper) {
return false;
}
}
效果
显示高度可微调
50
值