Skip to content
On this page

Timeline

A sequence of events with connected indicators.

Timeline in FluttyUITimeline in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

Timeline

const Timeline({
  super.key,
  required this.events,
  this.size,
  this.variant = TimelineVariant.standard,
  this.overline,
  this.title,
  this.sectionLabel,
  this.activeColor,
  this.lineColor,
  this.textColor,
  this.secondaryTextColor,
  this.markerSize,
  this.iconSize,
  this.lineWidth = 1.25,
  this.eventSpacing,
  this.contentSpacing,
  this.timeWidth,
});
ParameterTypeRequiredDefault
keyKey?Nonull
eventsList<TimelineEvent>Yes—
sizeComponentSize?Nonull
variantTimelineVariantNoTimelineVariant.standard
overlineString?Nonull
titleString?Nonull
sectionLabelString?Nonull
activeColorColor?Nonull
lineColorColor?Nonull
textColorColor?Nonull
secondaryTextColorColor?Nonull
markerSizedouble?Nonull
iconSizedouble?Nonull
lineWidthdoubleNo1.25
eventSpacingdouble?Nonull
contentSpacingdouble?Nonull
timeWidthdouble?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/data_display/timeline/timeline.dart

This reference is generated from the Timeline declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI