FancyIndicator constructor
const
FancyIndicator({
- Key? key,
- required List<
Color> gradientColors, - required List<
double> gradientColorsStops, - required double width,
- required double height,
- required dynamic onSelectedNumber(
- int indicatorNumber
- List<
int> marker = const [], - Color labelTextColor = FancyIndicatorUtils.whiteColor,
- Color selectedTextColor = FancyIndicatorUtils.blueColor,
- Color measureItemColor = FancyIndicatorUtils.yellowColor,
- Color backgroundColor = FancyIndicatorUtils.primaryColor,
- String numberAppendix = "%",
- Color draggableButtonColor = FancyIndicatorUtils.whiteColor,
- Color draggableButtonCircleColor = FancyIndicatorUtils.greyDarkerColor,
- Color draggableButtonIconsColor = FancyIndicatorUtils.triangleColor,
- Color draggableButtonCircleAnimateColor = FancyIndicatorUtils.greyColor,
- double labelTextSize = 20,
- 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});