timeline_tile_plus 0.1.0 copy "timeline_tile_plus: ^0.1.0" to clipboard
timeline_tile_plus: ^0.1.0 copied to clipboard

A package to help you build highly customisable timelines with Flutter.

timeline_tile_plus #

An updated and enhanced version of timeline_tile with:

  • Support for animated timeline lines
  • Support for dotted and dashed lines via LineStyle
  • Migration to the latest Dart & Flutter versions

⚠️ Note
This package is a maintained fork of timeline_tile.
The API is mostly compatible, with additional features added on top.


✨ What's new #

1. Animate the lines #

TimelineTile(
  alignment: TimelineAlign.manual,
  lineXY: 0.1,

  enableAfterLineAnimation: true,
  enableBeforeLineAnimation: true,
  tweenBeginColor: Colors.blue,
  tweenEndColor: Colors.red,

  isFirst: index == 0,
  isLast: index == examples.length - 1,
  indicatorStyle: IndicatorStyle(
    width: 40,
    height: 40,
    indicator: _IndicatorExample(number: '${index + 1}'),
    drawGap: true,
  ),
  beforeLineStyle: LineStyle(
    color: Colors.white.withOpacity(0.2),
  ),
  endChild: GestureDetector(
    child: _RowExample(example: example),
    onTap: () {
      Navigator.push(
        context,
        MaterialPageRoute<ShowcaseTimeline>(
          builder: (_) => ShowcaseTimeline(example: example),
        ),
      );
    },
  ),
);

2. Dotted and dashed lines #

LineStyle now supports:

  • dotted with dotRadius and dotSpacing
  • isDashed with dashLength and dashSpacing
TimelineTile(
  beforeLineStyle: const LineStyle(
    color: Colors.blue,
    thickness: 4,
    isDashed: true,
    dashLength: 6,
    dashSpacing: 4,
  ),
  afterLineStyle: const LineStyle(
    color: Colors.blue,
    dotted: true,
    dotRadius: 2,
    dotSpacing: 6,
  ),
);

📘 Getting Started #

A timeline consists of a group of TimelineTiles. A basic tile:

TimelineTile()

This builds a vertical tile aligned to the start.


Axis #

TimelineTile(axis: TimelineAxis.horizontal)

Alignment Types #

  • TimelineAlign.start
  • TimelineAlign.end
  • TimelineAlign.center
  • TimelineAlign.manual

Examples included in full docs.


Manual Indicator Alignment #

TimelineTile(
  alignment: TimelineAlign.manual,
  lineXY: 0.3,
);

First / Last Indicators #

Control line rendering with:

isFirst: true,
isLast: true,

Custom Indicators #

Support for icons, widgets, or styled circles.


Custom Lines #

LineStyle supports:

  • Thickness
  • Color
  • Dotted / dashed patterns

TimelineDivider #

Connect tiles across different alignments.


License #

Same as original timeline_tile.

18
likes
150
points
617
downloads

Publisher

unverified uploader

Weekly Downloads

A package to help you build highly customisable timelines with Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on timeline_tile_plus