TTimeline constructor
const
TTimeline({
- Key? key,
- required List<
TTimelineItem> items, - Axis direction = Axis.vertical,
- TTimelineLineStyle lineStyle = TTimelineLineStyle.dashed,
- double dashLength = 5.0,
- double dashGap = 3.5,
- double lineWidth = 2.0,
- Color? lineColor,
- double indicatorSize = 24.0,
- double ringWidth = 2.0,
- double ringGap = 2.5,
- TVariant variant = TVariant.outline,
- double itemGap = 16.0,
- double contentGap = 14.0,
- double lineGap = 5.0,
- TTimelineIndicatorAlignment indicatorAlignment = TTimelineIndicatorAlignment.top,
- EdgeInsetsGeometry? padding,
- ValueChanged<
int> ? onItemTap, - TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- TextStyle? descriptionStyle,
- TextStyle? timeStyle,
Implementation
const TTimeline({
super.key,
required this.items,
this.direction = Axis.vertical,
this.lineStyle = TTimelineLineStyle.dashed,
this.dashLength = 5.0,
this.dashGap = 3.5,
this.lineWidth = 2.0,
this.lineColor,
this.indicatorSize = 24.0,
this.ringWidth = 2.0,
this.ringGap = 2.5,
this.variant = TVariant.outline,
this.itemGap = 16.0,
this.contentGap = 14.0,
this.lineGap = 5.0,
this.indicatorAlignment = TTimelineIndicatorAlignment.top,
this.padding,
this.onItemTap,
this.titleStyle,
this.subtitleStyle,
this.descriptionStyle,
this.timeStyle,
});