BottomCurveClipper constructor
BottomCurveClipper({})
Implementation
BottomCurveClipper({
required this.navBarWidth,
required this.navBarHeight,
required this.curvePos,
required this.curveWidth,
required this.curveHeight,
required this.navBarAlignment,
}) {
if (navBarAlignment == 'bottom') {
topLeft = const Offset(0, 0);
topRight = Offset(navBarWidth, 0);
bottomLeft = Offset(0, navBarHeight);
bottomRight = Offset(navBarWidth, navBarHeight);
} else {
bottomLeft = const Offset(0, 0);
bottomRight = Offset(navBarWidth, 0);
topLeft = Offset(0, navBarHeight);
topRight = Offset(navBarWidth, navBarHeight);
}
}