SimpleMilestoneChart constructor
const
SimpleMilestoneChart({
- Key? key,
- required List<
SimpleMilestoneData> milestones, - SimpleMilestoneOrientation orientation = SimpleMilestoneOrientation.horizontal,
- SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- DateTime? minDate,
- DateTime? maxDate,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? markerColor,
- Color? doneColor,
- Color? activeColor,
- Color? blockedColor,
- Color? connectorColor,
- Color? trackColor,
- Color? milestoneBackgroundColor,
- TextStyle? dateStyle,
- TextStyle? labelStyle,
- TextStyle? descriptionStyle,
- bool sortByDate = true,
- bool alternating = true,
- bool showDates = true,
- bool showDescriptions = true,
- bool showTags = true,
- bool showConnector = true,
- bool showStatusMarks = true,
- bool showTooltip = true,
- bool showActiveMilestone = true,
- double markerRadius = 8,
- double connectorWidth = 3,
- double milestoneSpacing = 14,
- SimpleMilestoneDateFormatter? dateFormatter,
- SimpleMilestoneTapCallback? onMilestoneTap,
- SimpleMilestoneTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleMilestoneChart({
super.key,
required this.milestones,
this.orientation = SimpleMilestoneOrientation.horizontal,
this.style = SimpleBarChartStyle.elegant,
this.minDate,
this.maxDate,
this.height = 260,
this.padding = _defaultPadding,
this.palette,
this.markerColor,
this.doneColor,
this.activeColor,
this.blockedColor,
this.connectorColor,
this.trackColor,
this.milestoneBackgroundColor,
this.dateStyle,
this.labelStyle,
this.descriptionStyle,
this.sortByDate = true,
this.alternating = true,
this.showDates = true,
this.showDescriptions = true,
this.showTags = true,
this.showConnector = true,
this.showStatusMarks = true,
this.showTooltip = true,
this.showActiveMilestone = true,
this.markerRadius = 8,
this.connectorWidth = 3,
this.milestoneSpacing = 14,
this.dateFormatter,
this.onMilestoneTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 700),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(markerRadius >= 0),
assert(connectorWidth > 0),
assert(milestoneSpacing >= 0);