Timeline class

Inheritance

Constructors

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.
const

Properties

children List<Widget>
The timeline items.
final
controller ScrollController?
ScrollController of the list of timeline elements.
final
gutterSpacing double?
Spacing between indicators and their respective content.
final
hashCode int
The hash code for this object.
no setterinherited
indicators List<SeniorTimelineIndicator>
Timeline indicators. The quantity of items must be equivalent to the quantity of items of children.
final
indicatorSize double?
Defines the size of timeline indicators.
final
isLeftAligned bool
Defines whether timeline indicators will be left-aligned.
final
itemCount int
The number of items on the timeline.
final
itemGap double?
Spacing between timeline indicators.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineGap double?
Spacing between the line and the indicator. This value is within the value of itemGap.
final
minimizeable bool
Whether the timeline can be expanded and minimized.
final
padding EdgeInsets
Component padding.
final
physics ScrollPhysics?
Defines the value that will be assigned to the ListView's physics property that contains the timeline items. Determines how the scrolling view should respond to user input.
final
primary bool
Defines the value that will be assigned to the ListView's primary property that contains the timeline items. Determines whether this is the primary scroll view associated with the parent PrimaryScrollController.
final
reverse bool
Defines the value that will be assigned to the reverse property of the ListView that contains the timeline items. Determines whether the scrolling view scrolls in the reading direction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shrinkWrap bool
Defines the value that will be assigned to the ListView's shrinkWrap property that contains the timeline items. Determines whether the extent of scrolling view in scrollDirection should be determined by the content being viewed.
final
strokeWidth double?
Defines the thickness of the line between the indicators.
final
style SeniorTimelineStyle?
The style definitions for the component. As definições de estilo para o componente. SeniorTimelineStyle.expandIconColor the color of the expand icon. SeniorTimelineStyle.expandIconSize the size of the expand icon.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<Timeline>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited