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: SequentialFillIndicatorPainter(
          currentIndicatorColor: currentIndicatorColor,
          indicatorBackgroundColor: indicatorBackgroundColor,
          currentPage: currentPage,
          pageDelta: pageDelta,
          itemCount: itemCount,
          radius: indicatorRadius,
          enableAnimation: enableAnimation,
          indicatorBorderColor: indicatorBorderColor,
          borderWidth: indicatorBorderWidth,
        ),
      ),
    ),
  );
}