timeline_list 0.0.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 91

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:

  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 = [
          position: TimelineItemPosition.random,
          iconBackground: Colors.redAccent,
          icon: Icon(Icons.blur_circular)),
          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

[0.0.1] - Initial release #

[0.0.2] - Changing README #

- Fix: Dart pub's markdown rendering issue

[0.0.3] - Reverse option added #

[0.0.4] - ScrollPhysics added for custom scroll behaviors (thanks @JJCLane) #

[0.0.5] - primary option added. (Thanks @mjhansen3) #


import 'package:flutter/material.dart';
import 'timeline.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Timeline Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      home: TimelinePage(title: 'Muslim Civilisation Doodles'),

Use this package as a library

1. Depend on it

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

  timeline_list: ^0.0.5

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_list/timeline.dart';
import 'package:timeline_list/timeline_model.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 Mar 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/timeline.dart.

Run flutter format to format lib/timeline.dart.

Format lib/timeline_model.dart.

Run flutter format to format lib/timeline_model.dart.

Maintenance suggestions

The package description is too short. (-19 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.

Update README.md. (-2 points)

1 image link is insecure (e.g. http://ehlibyte.com/images/ehlibyte-logo-small.png?raw=true), use https URLs instead.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.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