fix : some bug
This commit is contained in:
@@ -107,3 +107,44 @@ class ContainerBreadcrumb extends Breadcrumb {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
class _TriangleClipper extends CustomClipper<Path> {
|
||||
final bool isFirst;
|
||||
final bool isLast;
|
||||
|
||||
_TriangleClipper({required this.isFirst, required this.isLast});
|
||||
|
||||
@override
|
||||
Path getClip(Size size) {
|
||||
final Path path = Path();
|
||||
|
||||
if (isFirst) {
|
||||
path.moveTo(20, 0);
|
||||
path.lineTo(size.width, 0);
|
||||
path.lineTo(size.width, size.height);
|
||||
path.lineTo(20, size.height);
|
||||
} else {
|
||||
path.moveTo(20, 0);
|
||||
path.lineTo(size.width, 0);
|
||||
path.lineTo(size.width - 20, size.height / 2);
|
||||
path.lineTo(size.width, size.height);
|
||||
path.lineTo(20, size.height);
|
||||
}
|
||||
|
||||
if (isLast) {
|
||||
path.moveTo(0, 0);
|
||||
path.lineTo(0, size.height);
|
||||
} else {
|
||||
path.moveTo(20, 0);
|
||||
path.lineTo(0, size.height / 2);
|
||||
path.lineTo(20, size.height);
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
@override
|
||||
bool shouldReclip(CustomClipper<Path> oldClipper) {
|
||||
return true;
|
||||
}
|
||||
}*/
|
||||
|
||||
Reference in New Issue
Block a user