TimelineView constructor
TimelineView({
- required int activeIndex,
- required List<
Widget> labelWidgets, - List<
Widget> ? iconWidgets, - dynamic onChanged()?,
- double lineHeight = 2.0,
- double circleRadius = 15.0,
- Widget? lineWidget,
- Widget? unSelectedWidget,
- Widget? selectedWidget,
- bool showLabels = true,
- TextStyle? selectedTextStyle,
- TextStyle? unSelectedTextStyle,
- Color? finishedLineColor,
- Color? unFinishedLineColor,
- 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");