I like Osama's answer too but here's my quick custom implementation. It uses a CustomPainter
to draw the lines.
import 'package:flutter/material.dart'
class Timeline extends StatelessWidget {
const Timeline({
Key? key,
required this.children,
this.indicators,
this.isLeftAligned = true,
this.itemGap = 12.0,
this.gutterSpacing = 4.0,
this.padding = const EdgeInsets.all(8),
this.controller,
this.lineColor = Colors.grey,
…
Top comments (0)