CardPoints constructor

const CardPoints({
  1. Key? key,
  2. required int currentPoints,
  3. List<int> milestones = const [0, 10, 20, 30, 40],
  4. List<String>? labels,
  5. Color progressColor = Colors.blue,
  6. Color? trackColor,
  7. Widget? completedIcon,
  8. Widget? pendingIcon,
  9. double iconSize = 24.0,
  10. dynamic onMilestoneTap(
    1. int index
    )?,
  11. double? lineHeight,
  12. Duration? animationDuration,
  13. Curve? animationCurve,
  14. TextStyle? labelStyle,
})

Creates a CardPoints widget.

currentPoints determines the current progress. milestones is the list of milestone values.

Implementation

const CardPoints({
  super.key,
  required this.currentPoints,
  this.milestones = const [0, 10, 20, 30, 40],
  this.labels,
  this.progressColor = Colors.blue,
  this.trackColor,
  this.completedIcon,
  this.pendingIcon,
  this.iconSize = 24.0,
  this.onMilestoneTap,
  this.lineHeight,
  this.animationDuration,
  this.animationCurve,
  this.labelStyle,
});