timeline_flow 0.0.5

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 68

timeline_flow #

A flutter package to create timeline flow;

Usage:

@override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(widget.title),
      ),
      body: Column(
        children: 

[0.0.1] - TODO: Add release date.

  • 0.0.1 - 0.0.4 Initial Dev..
  • 0.0.5 add TimelineProfile->icon add Credits

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Timeline Flow',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(title: 'Timeline Flow Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(widget.title),
      ),
      body: Column(
        children: <Widget>[
          TimelineProfile(
              margin: EdgeInsets.only(top: 5.0),
              image: AssetImage( 'assets/foto_face.jpg'),
              title: Text('Timeline Flow'),
              subTitle: Text('sample'),
              color: Colors.black12,
          ),
          Expanded(child:Stack(
            children: <Widget>[
              TimelineView.builder( bottom: 40.0, left: 30.0, leftLine: 45.0, bottomLine:40.0,  itemCount: 20, itemBuilder: (index){
                return TimelineTile(
                  title: Text('text $index',),
                  subTitle: Text(' sub-title $index'),
                  icon: Icon( (index.isEven?Icons.history:Icons.check),color: (index.isEven?Colors.red:Colors.blue),),
                  gap: 0.0,
                  trailing: Text('15:00'),
                  );
              }),
            ],
          )),
        ],
      ),
      floatingActionButton: new FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: new Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  timeline_flow: ^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_flow/timeline_flow.dart';
  
Version Uploaded Documentation Archive
0.0.5 Aug 31, 2018 Go to the documentation of timeline_flow 0.0.5 Download timeline_flow 0.0.5 archive
0.0.4 Aug 26, 2018 Go to the documentation of timeline_flow 0.0.4 Download timeline_flow 0.0.4 archive
0.0.3 Aug 25, 2018 Go to the documentation of timeline_flow 0.0.3 Download timeline_flow 0.0.3 archive
0.0.2 Aug 25, 2018 Go to the documentation of timeline_flow 0.0.2 Download timeline_flow 0.0.2 archive
0.0.1 Aug 25, 2018 Go to the documentation of timeline_flow 0.0.1 Download timeline_flow 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
51
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
65
Overall:
Weighted score of the above. [more]
68
Learn more about scoring.

We analyzed this package on Jun 19, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/src/timeline.dart. (-1 points)

Analysis of lib/src/timeline.dart reported 2 hints:

line 106 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: TimelineTile._list

line 251 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: TimelineProfile._list

Format lib/timeline_flow.dart.

Run flutter format to format lib/timeline_flow.dart.

Maintenance issues and suggestions

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test