Timeline constructor
const
Timeline({
- Key? key,
- required List<
Widget> children, - ScrollController? controller,
- double? gutterSpacing,
- required List<
SeniorTimelineIndicator> indicators, - double? indicatorSize,
- bool isLeftAligned = true,
- double? itemGap,
- double? lineGap,
- bool minimizeable = false,
- EdgeInsets padding = const EdgeInsets.all(SeniorSpacing.small),
- ScrollPhysics? physics,
- bool primary = false,
- bool reverse = false,
- bool shrinkWrap = true,
- double? strokeWidth,
- SeniorTimelineStyle? style,
Creates a timeline component according to SDS definitions.
The children and indicators parameters are required. The number of records in children and indicators must be equal.
Implementation
const Timeline({
Key? key,
required this.children,
this.controller,
this.gutterSpacing,
required this.indicators,
this.indicatorSize,
this.isLeftAligned = true,
this.itemGap,
this.lineGap,
this.minimizeable = false,
this.padding = const EdgeInsets.all(SeniorSpacing.small),
this.physics,
this.primary = false,
this.reverse = false,
this.shrinkWrap = true,
this.strokeWidth,
this.style,
}) : itemCount = children.length,
assert(children.length == indicators.length),
super(key: key);