build method

  1. @override
Widget build(
  1. int currentPage,
  2. double pageDelta,
  3. int itemCount
)
override

Implementation

@override
Widget build(int currentPage, double pageDelta, int itemCount) {
  return Container(
    alignment: alignment,
    padding: padding,
    child: SizedBox(
      width: itemCount * itemSpacing,
      height: indicatorRadius * 2,
      child: CustomPaint(
        painter: CircularIndicatorPainter(
          currentIndicatorColor: currentIndicatorColor,
          indicatorBackgroundColor: indicatorBackgroundColor,
          currentPage: currentPage,
          pageDelta: pageDelta,
          itemCount: itemCount,
          radius: indicatorRadius,
          indicatorBorderColor: indicatorBorderColor,
          borderWidth: indicatorBorderWidth,
        ),
      ),
    ),
  );
}