S360fTimeline class

A customizable timeline widget that displays a vertical sequence of events with visual indicators showing completion status.

The S360fTimeline widget creates a bordered container with a light gray background that contains a series of timeline items. Each item displays a title, formatted date/time, and author information with a visual indicator showing whether the item is completed or pending.

Usage

S360fTimeline(
  items: [
    S360fTimelineItem(
      title: 'Task Completed',
      subtitle: 'Additional info',
      author: 'John Doe',
      dateTime: DateTime.now(),
      isCompleted: true,
    ),
    S360fTimelineItem(
      title: 'Pending Task',
      subtitle: 'Waiting for approval',
      author: 'Jane Smith',
      dateTime: DateTime.now().add(Duration(hours: 2)),
      isCompleted: false,
    ),
  ],
)

Visual Design

  • Container: Light gray background with rounded corners and border
  • Timeline Indicators: Blue circles with checkmarks for completed items, hollow circles for pending items
  • Connecting Lines: Vertical blue lines connecting timeline items
  • Typography: Clear hierarchy with title, date/time, and author information

Accessibility

The widget uses semantic colors and proper text contrast ratios. Consider adding semantic labels for screen readers when implementing.

Performance

This widget is optimized for lists with moderate number of items (< 100). For larger datasets, consider implementing lazy loading or pagination.

Inheritance
Available extensions

Constructors

S360fTimeline({required List<S360fTimelineItem> items, Key? key})
Creates a timeline widget with the given list of items.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<S360fTimelineItem>
The list of timeline items to display.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

animateOnActionTrigger(AnimationInfo animationInfo, {List<Effect>? effects, bool hasBeenTriggered = false}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

animateOnPageLoad(AnimationInfo animationInfo, {List<Effect>? effects}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, int wrapWidth = 65}) 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