timeline 0.0.1 timeline: ^0.0.1 copied to clipboard
A new flutter package project.
import "package:flutter/material.dart";
import 'package:timeline/model/timeline_model.dart';
import 'package:timeline/timeline.dart';
class TimelineExample extends StatelessWidget {
final List<TimelineModel> list = [
TimelineModel(
id: "1",
description: "Test 1",
title: "Test 1"),
TimelineModel(
id: "2",
description: "Test 2",
title: "Test 2")
];
@override
Widget build(BuildContext context) {
return new TimelineComponent(
timelineList: list,
// lineColor: Colors.red[200], // Defaults to accent color if not provided
// backgroundColor: Colors.black87, // Defaults to white if not provided
// headingColor: Colors.black, // Defaults to black if not provided
// descriptionColor: Colors.grey, // Defaults to grey if not provided
);
}
}