UiPageIndicator constructor

const UiPageIndicator({
  1. Key? key,
  2. required int currentIndex,
  3. required int length,
  4. Duration animationDuration = const Duration(milliseconds: 300),
  5. double activeWidth = 36,
  6. double inactiveWidth = 8,
  7. double height = 8,
  8. double spacing = 5,
  9. required Color activeColor,
  10. required Color inactiveColor,
  11. IndicatorShape shape = IndicatorShape.roundedRect,
  12. MainAxisAlignment alignment = MainAxisAlignment.start,
  13. void onTap(
    1. 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,
});