timeline 0.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 74

Timeline #

A flutter package that allows you to create basic timelines on your flutter application. This is customizable and easy to plugin to your application. You will find the following features:

  • A simple timeline with a title and a description
  • Customizable color options for - Line, Title, Description and Background
  • Tween animation on the line
  • Title will be truncated at 47 characters to prevent overflowing
  • Description will be truncated at 75 character to prevent overflowing

Getting Started #

You will need to add the following dependency in your pubspec.yaml file to download the depedency.

    sdk: flutter
  timeline: 0.0.1

Note: This was built on the following tools.

  • Flutter - v0.4.4
  • Dart - v2.0.0-dev.54.0

Usage #

You will need to create a list of TimelineModel first. This creates an instance with an id which is a String at the moment, along with title and description


Contributing #

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors #

  • Rejish Radhakrishnan

License #

Copyright 2018 Rejish Radhakrishnan

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

[0.0.4] - Release

  • A very basic timeline to display a series of events in the provided order.

[0.0.3] - Pre release

  • Identifying the first and last elements of the list and paint accordingly. Tagged to pre-release for consumption.

[0.0.2] - Pre release

  • Add new timeline component. Tagged to pre-release for consumption.

[0.0.1] - Pre release

  • Initial Commit. Tagged to pre- release for consumption.


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 = [
      id: "1",
      description: "Test 1",
      title: "Test 1"),
      id: "2",
      description: "Test 2",
      title: "Test 2")

  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


Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  timeline: ^0.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:timeline/timeline.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 20, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Format lib/model/timeline_model.dart.

Run flutter format to format lib/model/timeline_model.dart.

Format lib/timeline.dart.

Run flutter format to format lib/timeline.dart.

Format lib/timeline_element.dart.

Run flutter format to format lib/timeline_element.dart.

Format lib/timeline_painter.dart.

Run flutter format to format lib/timeline_painter.dart.

Maintenance suggestions

Package is getting outdated. (-56.44 points)

The package was last published 81 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.54.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies