CardPoints constructor
const
CardPoints({
- Key? key,
- required int currentPoints,
- List<
int> milestones = const [0, 10, 20, 30, 40], - List<
String> ? labels, - Color progressColor = Colors.blue,
- Color? trackColor,
- Widget? completedIcon,
- Widget? pendingIcon,
- double iconSize = 24.0,
- dynamic onMilestoneTap(
- int index
- double? lineHeight,
- Duration? animationDuration,
- Curve? animationCurve,
- 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,
});