paintInactiveIndicators method

  1. @override
dynamic paintInactiveIndicators(
  1. Canvas canvas,
  2. Size size,
  3. Paint paint,
  4. Path path,
)
override

Implementation

@override
paintInactiveIndicators(Canvas canvas, Size size, Paint paint, Path path) {
  Offset offset = Offset.zero;
  for (int i = 0; i <= pagesLength - 1; i++) {
    path.moveTo(offset.dx, offset.dy);
    path.lineTo(offset.dx, offset.dy + width);
    path.lineTo(offset.dx + width, (offset.dy + width) / 2);
    path.close();
    offset = Offset(offset.dx + width + space, offset.dy);
  }
  // canvas.rotate(3.14);
  canvas.drawPath(path, paint);
}