TTimeline constructor

const TTimeline({
  1. Key? key,
  2. required List<TTimelineItem> items,
  3. Axis direction = Axis.vertical,
  4. TTimelineLineStyle lineStyle = TTimelineLineStyle.dashed,
  5. double dashLength = 5.0,
  6. double dashGap = 3.5,
  7. double lineWidth = 2.0,
  8. Color? lineColor,
  9. double indicatorSize = 24.0,
  10. double ringWidth = 2.0,
  11. double ringGap = 2.5,
  12. TVariant variant = TVariant.outline,
  13. double itemGap = 16.0,
  14. double contentGap = 14.0,
  15. double lineGap = 5.0,
  16. TTimelineIndicatorAlignment indicatorAlignment = TTimelineIndicatorAlignment.top,
  17. EdgeInsetsGeometry? padding,
  18. ValueChanged<int>? onItemTap,
  19. TextStyle? titleStyle,
  20. TextStyle? subtitleStyle,
  21. TextStyle? descriptionStyle,
  22. 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,
});