TTimelineItem class

Represents an entry/node in a TTimeline.

Constructors

TTimelineItem({Widget? title, String? titleText, Widget? subtitle, String? subtitleText, Widget? description, String? descriptionText, Widget? trailing, String? timeText, Widget? icon, IconData? iconData, double? iconSize, Color? iconColor, Color? color, Color? ringColor, Color? innerColor, Color? lineColor, TTimelineLineStyle? lineStyle, Widget? indicator, TVariant? variant, Widget? content, bool isActive = false, bool isCompleted = false, VoidCallback? onTap})
const
TTimelineItem.text({required String title, String? subtitle, String? description, String? time, IconData? icon, Color? color, Color? ringColor, Color? innerColor, TTimelineLineStyle? lineStyle, TVariant? variant, Widget? content, bool isActive = false, bool isCompleted = false, VoidCallback? onTap})
Factory constructor for a plain text-driven timeline item.
factory

Properties

color Color?
Custom color for the indicator, ring, and active text.
final
content Widget?
Extra custom content displayed below the description (e.g., cards, action buttons, image previews).
final
description Widget?
The description widget for this timeline item.
final
descriptionText String?
Optional plain text description shorthand.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
Icon displayed inside the indicator circle.
final
iconColor Color?
Color of the icon.
final
iconData IconData?
Shorthand IconData for the indicator icon.
final
iconSize double?
Size of the icon.
final
indicator Widget?
Custom indicator widget overriding the default ring indicator.
final
innerColor Color?
Custom color override for the inner circle fill.
final
isActive bool
Whether this timeline step is currently active / in-progress.
final
isCompleted bool
Whether this timeline step is completed.
final
lineColor Color?
Custom color for the connecting line following this item.
final
lineStyle TTimelineLineStyle?
Custom line style for the connecting line following this item (dashed, solid, dotted, none).
final
onTap VoidCallback?
Callback when this timeline item or its indicator is tapped.
final
ringColor Color?
Custom color override for the outer ring.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle Widget?
The subtitle widget for this timeline item.
final
subtitleText String?
Optional plain text subtitle shorthand.
final
timeText String?
Optional plain text trailing timestamp shorthand.
final
title Widget?
The title widget for this timeline item.
final
titleText String?
Optional plain text title shorthand.
final
trailing Widget?
Trailing metadata or timestamp widget (e.g., date, time, status badge).
final
variant TVariant?
Visual variant of the indicator (solid, tonal, outline, softOutline, etc.).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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