Timeline widget for flutter
Branch: master
Clone or download
Latest commit 126f420 Jan 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Updated example app and Readme. Jan 16, 2019
example Updated example app and Readme. Jan 16, 2019
lib Added reverse option Jan 20, 2019
test Added reverse option Jan 20, 2019
.gitignore Default values refactored. Jan 15, 2019
.metadata Initial implementation Jan 12, 2019
.travis.yml Added tests Jan 15, 2019
CHANGELOG.md Added reverse option Jan 20, 2019
LICENSE Initial commit Jan 10, 2019
README.md Added reverse option Jan 20, 2019
pubspec.yaml Added reverse option Jan 20, 2019
timeline.iml Initial implementation Jan 12, 2019

README.md

Flutter Timeline Widget

pub package Build Status codecov

Displays a scrollable timeline with custom child widgets and custom icons.

Flutter Timeline List Screenshot

Installation

In your pubspec.yaml file within your Flutter Project:

dependencies:
  timeline_list: ^0.0.3

Features

  • 3 different timeline alignments. Left, Center, Right.
  • On demand child building with Timeline.builder.
  • Custom icon and icon size support (icon sizes supported only on centered timeline).

Usage

import 'package:timeline_list/timeline.dart';
import 'package:timeline_list/timeline_model.dart';

List<TimelineModel> items = [
      TimelineModel(Placeholder(),
          position: TimelineItemPosition.random,
          iconBackground: Colors.redAccent,
          icon: Icon(Icons.blur_circular)),
      TimelineModel(Placeholder(),
          position: TimelineItemPosition.random,
          iconBackground: Colors.redAccent,
          icon: Icon(Icons.blur_circular)),
    ];
    return Timeline(children: items, position: TimelinePosition.Center);

Example

A sample timeline app can be found in the example/ folder.

ehlibyte games