SequentialFillIndicatorPainter constructor
SequentialFillIndicatorPainter({})
Implementation
SequentialFillIndicatorPainter({
required this.currentPage,
required this.pageDelta,
required this.itemCount,
this.radius = 12,
required Color currentIndicatorColor,
required Color indicatorBackgroundColor,
this.enableAnimation = false,
this.indicatorBorderColor,
double borderWidth = 2,
}) {
indicatorPaint.color = indicatorBackgroundColor;
indicatorPaint.style = PaintingStyle.fill;
indicatorPaint.isAntiAlias = true;
currentIndicatorPaint.color = currentIndicatorColor;
currentIndicatorPaint.style = PaintingStyle.fill;
currentIndicatorPaint.isAntiAlias = true;
currentIndicatorPaint.strokeCap = StrokeCap.round;
currentIndicatorPaint.strokeWidth = radius * 2;
if (indicatorBorderColor != null) {
borderIndicatorPaint.color = indicatorBorderColor!;
borderIndicatorPaint.style = PaintingStyle.stroke;
borderIndicatorPaint.strokeWidth = borderWidth;
borderIndicatorPaint.isAntiAlias = true;
}
}