SimpleEventStripChart constructor
const
SimpleEventStripChart({
- Key? key,
- required List<
SimpleEventStripLane> lanes, - SimpleBarChartStyle style = SimpleBarChartStyle.elegant,
- DateTime? minDate,
- DateTime? maxDate,
- DateTime? markerDate,
- double height = 260,
- EdgeInsets padding = _defaultPadding,
- List<
Color> ? palette, - Color? eventColor,
- Color? laneColor,
- Color? gridColor,
- Color? axisColor,
- Color? markerDateColor,
- Color? activeColor,
- Color? laneBackgroundColor,
- TextStyle? laneLabelStyle,
- TextStyle? dateStyle,
- TextStyle? eventLabelStyle,
- bool sortByDate = true,
- bool showGrid = true,
- bool showLaneLabels = true,
- bool showDates = true,
- bool showEventLabels = false,
- bool showWeights = true,
- bool showMarkerDate = true,
- bool showTooltip = true,
- bool showActiveEvent = true,
- int tickCount = 4,
- double minEventRadius = 3.5,
- double maxEventRadius = 8,
- double eventOpacity = 0.86,
- SimpleEventStripDateFormatter? dateFormatter,
- SimpleEventStripWeightFormatter? weightFormatter,
- SimpleEventStripTapCallback? onEventTap,
- SimpleEventStripTooltipBuilder? tooltipBuilder,
- WidgetBuilder? emptyBuilder,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- Duration animationDuration = const Duration(milliseconds: 700),
- Curve animationCurve = Curves.easeOutCubic,
Implementation
const SimpleEventStripChart({
super.key,
required this.lanes,
this.style = SimpleBarChartStyle.elegant,
this.minDate,
this.maxDate,
this.markerDate,
this.height = 260,
this.padding = _defaultPadding,
this.palette,
this.eventColor,
this.laneColor,
this.gridColor,
this.axisColor,
this.markerDateColor,
this.activeColor,
this.laneBackgroundColor,
this.laneLabelStyle,
this.dateStyle,
this.eventLabelStyle,
this.sortByDate = true,
this.showGrid = true,
this.showLaneLabels = true,
this.showDates = true,
this.showEventLabels = false,
this.showWeights = true,
this.showMarkerDate = true,
this.showTooltip = true,
this.showActiveEvent = true,
this.tickCount = 4,
this.minEventRadius = 3.5,
this.maxEventRadius = 8,
this.eventOpacity = 0.86,
this.dateFormatter,
this.weightFormatter,
this.onEventTap,
this.tooltipBuilder,
this.emptyBuilder,
this.semanticLabel,
this.excludeFromSemantics = false,
this.animationDuration = const Duration(milliseconds: 700),
this.animationCurve = Curves.easeOutCubic,
}) : assert(height > 0),
assert(tickCount >= 2),
assert(minEventRadius >= 0),
assert(maxEventRadius >= minEventRadius),
assert(eventOpacity >= 0 && eventOpacity <= 1);