Indicator constructor

const Indicator({
  1. Key? key,
  2. required int itemCount,
  3. required int selectedItem,
  4. double activeRadius = 4,
  5. double inactiveRadius = 2.5,
  6. Color activeColor = Colors.black,
  7. Color inactiveColor = Colors.grey,
  8. double spaceBetween = 10,
})

Usage example:

Indicator(
  itemCount: 3,
  selectedItem: 1,
)

This will create a row of three indicators with the second indicator marked as active.

Implementation

const Indicator({
  super.key,
  required this.itemCount,
  required this.selectedItem,
  this.activeRadius = 4,
  this.inactiveRadius = 2.5,
  this.activeColor = Colors.black,
  this.inactiveColor = Colors.grey,
  this.spaceBetween = 10,
});