AnimatedCirclePageIndicator constructor
const
AnimatedCirclePageIndicator({
- Key? key,
- required ValueNotifier<
int> currentPageNotifier, - required int itemCount,
- double radius = 8,
- double borderWidth = 0,
- double activeRadius = 4,
- double spacing = 4,
- Color fillColor = const Color(0xFF4C4C4C),
- Color borderColor = Colors.white,
- Color activeColor = Colors.white,
- EdgeInsets? padding,
- Duration duration = const Duration(milliseconds: 200),
Implementation
const AnimatedCirclePageIndicator({
Key? key,
required this.currentPageNotifier,
required this.itemCount,
this.radius = 8,
this.borderWidth = 0,
this.activeRadius = 4,
this.spacing = 4,
this.fillColor = const Color(0xFF4C4C4C),
this.borderColor = Colors.white,
this.activeColor = Colors.white,
this.padding,
this.duration = const Duration(milliseconds: 200),
}) : assert(radius > 0,
'No radius, no circle pal, give non-zero radius'),
assert(radius > activeRadius,
'No pal, activeRadius can not be bigger than radius'),
super(key: key);