paintActiveIndicators method

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

Implementation

@override
paintActiveIndicators(Canvas canvas, Size size, Paint paint, Path path) {
  final Offset offset1 =
      Offset(netDragPercent * pagesLength * (radius + space), 0.0);
  canvas.drawCircle(offset1, radius, paint);

  if (showAllActiveIndicators) {
    Offset offset2 = Offset.zero;
    for (int i = 0; i <= currentPageIndex; i++) {
      canvas.drawCircle(offset2, radius, paint);
      offset2 = Offset(offset2.dx + radius + space, 0.0);
    }
  }
}