timeline_flow 0.0.5

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

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: [
          Image.asset( 'assets/foto_face.jpg',height: 50.0,width: 50.0,),
          TimelineProfile(
              image: AssetImage( 'assets/foto_face.jpg'),
              title: Text('Timeline Flow'),
              subTitle: Text('sample'),
              color: Colors.black12,
              ),
          Expanded(child:Stack(
            children: [
              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.
    );
  }

[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 packages get

Alternatively, your editor might support flutter packages 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]
0
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
44
Learn more about scoring.

We analyzed this package on Sep 18, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.3
  • Flutter: 0.8.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Suggestions

The description is too short.

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v0.1 release.

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

Fix lib/src/timeline.dart.

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

line 106 col 7: This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final).

line 251 col 7: This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final).

Format lib/timeline_flow.dart.

Run flutter format to format lib/timeline_flow.dart.

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
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test