TimelineView constructor

TimelineView({
  1. required int activeIndex,
  2. required List<Widget> labelWidgets,
  3. List<Widget>? iconWidgets,
  4. dynamic onChanged(
    1. int
    )?,
  5. double lineHeight = 2.0,
  6. double circleRadius = 15.0,
  7. Widget? lineWidget,
  8. Widget? unSelectedWidget,
  9. Widget? selectedWidget,
  10. bool showLabels = true,
  11. TextStyle? selectedTextStyle,
  12. TextStyle? unSelectedTextStyle,
  13. Color? finishedLineColor,
  14. Color? unFinishedLineColor,
  15. bool hasFinished = false,
})

Implementation

TimelineView({
  required this.activeIndex,
  required this.labelWidgets,
  this.iconWidgets,
  this.onChanged,
  this.lineHeight = 2.0,
  this.circleRadius = 15.0,
  this.lineWidget,
  this.unSelectedWidget,
  this.selectedWidget,
  this.showLabels = true,
  this.selectedTextStyle,
  this.unSelectedTextStyle,
  this.finishedLineColor,
  this.unFinishedLineColor,
  this.hasFinished = false,
})  : assert(
          labelWidgets.length > 1, "labelWidgets should be greater than 1");