UiPageIndicator constructor
const
UiPageIndicator({
- Key? key,
- required int currentIndex,
- required int length,
- Duration animationDuration = const Duration(milliseconds: 300),
- double activeWidth = 36,
- double inactiveWidth = 8,
- double height = 8,
- double spacing = 5,
- required Color activeColor,
- required Color inactiveColor,
- IndicatorShape shape = IndicatorShape.roundedRect,
- MainAxisAlignment alignment = MainAxisAlignment.start,
- void onTap(
- int index
Implementation
const UiPageIndicator({
super.key,
required this.currentIndex,
required this.length,
this.animationDuration = const Duration(milliseconds: 300),
this.activeWidth = 36,
this.inactiveWidth = 8,
this.height = 8,
this.spacing = 5,
required this.activeColor,
required this.inactiveColor,
this.shape = IndicatorShape.roundedRect,
this.alignment = MainAxisAlignment.start,
this.onTap,
});