TimelineTheme class

Theme configuration for Timeline widgets.

Provides styling and layout defaults for timeline components including column constraints, spacing, indicator appearance, and connector styling. Used with ComponentTheme to apply consistent timeline styling across an application while allowing per-instance customization.

Example:

ComponentTheme<TimelineTheme>(
  data: TimelineTheme(
    timeConstraints: BoxConstraints(minWidth: 100, maxWidth: 150),
    spacing: 20.0,
    dotSize: 16.0,
    color: Colors.blue,
    rowGap: 24.0,
  ),
  child: MyTimelineWidget(),
);

Constructors

TimelineTheme.new({BoxConstraints? timeConstraints, double? spacing, double? dotSize, double? connectorThickness, Color? color, double? rowGap})
Creates a TimelineTheme with the specified styling options.
const

Properties

color Color?
Default color for indicators and connectors when not specified per entry.
final
connectorThickness double?
Default thickness of connector lines between timeline entries.
final
dotSize double?
Default diameter of timeline indicator dots.
final
hashCode int
The hash code for this object.
no setteroverride
rowGap double?
Default vertical spacing between timeline rows.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacing double?
Default horizontal spacing between timeline columns.
final
timeConstraints BoxConstraints?
Default constraints for the time column width.
final

Methods

copyWith({ValueGetter<BoxConstraints?>? timeConstraints, ValueGetter<double?>? spacing, ValueGetter<double?>? dotSize, ValueGetter<double?>? connectorThickness, ValueGetter<Color?>? color, ValueGetter<double?>? rowGap}) TimelineTheme
Creates a copy of this theme with the given values replaced.
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.
override