FancyIndicator constructor

const FancyIndicator({
  1. Key? key,
  2. required List<Color> gradientColors,
  3. required List<double> gradientColorsStops,
  4. required double width,
  5. required double height,
  6. required dynamic onSelectedNumber(
    1. int indicatorNumber
    ),
  7. List<int> marker = const [],
  8. Color labelTextColor = FancyIndicatorUtils.whiteColor,
  9. Color selectedTextColor = FancyIndicatorUtils.blueColor,
  10. Color measureItemColor = FancyIndicatorUtils.yellowColor,
  11. Color backgroundColor = FancyIndicatorUtils.primaryColor,
  12. String numberAppendix = "%",
  13. Color draggableButtonColor = FancyIndicatorUtils.whiteColor,
  14. Color draggableButtonCircleColor = FancyIndicatorUtils.greyDarkerColor,
  15. Color draggableButtonIconsColor = FancyIndicatorUtils.triangleColor,
  16. Color draggableButtonCircleAnimateColor = FancyIndicatorUtils.greyColor,
  17. double labelTextSize = 20,
  18. double selectedTextSize = 30,
})

Implementation

const FancyIndicator(
    {super.key,
    required this.gradientColors,
    required this.gradientColorsStops,
    required this.width,
    required this.height,
    required this.onSelectedNumber,
    this.marker = const [],
    this.labelTextColor = FancyIndicatorUtils.whiteColor,
    this.selectedTextColor = FancyIndicatorUtils.blueColor,
    this.measureItemColor = FancyIndicatorUtils.yellowColor,
    this.backgroundColor = FancyIndicatorUtils.primaryColor,
    this.numberAppendix = "%",
    this.draggableButtonColor = FancyIndicatorUtils.whiteColor,
    this.draggableButtonCircleColor = FancyIndicatorUtils.greyDarkerColor,
    this.draggableButtonIconsColor = FancyIndicatorUtils.triangleColor,
    this.draggableButtonCircleAnimateColor = FancyIndicatorUtils.greyColor,
    this.labelTextSize = 20,
    this.selectedTextSize = 30});