BottomCurveClipper constructor

BottomCurveClipper({
  1. required double navBarWidth,
  2. required double navBarHeight,
  3. required double curvePos,
  4. required double curveWidth,
  5. required double curveHeight,
  6. required String navBarAlignment,
})

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);
  }
}