fix : some bug

This commit is contained in:
2025-10-11 17:16:26 +03:30
parent be6e16f54e
commit 9a29b0ea58
20 changed files with 1962 additions and 300 deletions

View File

@@ -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;
}
}*/