flutter_gitgraph

Last updated:

0 purchases

flutter_gitgraph Image
flutter_gitgraph Images
Add to Cart

Description:

flutter gitgraph

flutter_gitgraph #
A Flutter library to easily visualize shiny Git Graphs.

Getting started #
Add as a dependency
dependencies:
flutter_gitgraph: latest_version
copied to clipboard
Declare a list of commits
const COMMIT_DATA = [
{'id': 'cmt_1', 'name': 'h45edf'},
{'id': 'cmt_2', 'name': 'ed3sdf', 'prev': 'cmt_1'},
{'id': 'cmt_3', 'name': 'asd32n', 'prev': 'cmt_2'},
{'id': 'cmt_4', 'name': 'bsh32j', 'prev': 'cmt_3'},
{'id': 'cmt_5', 'name': 'f3h3dr', 'prev': 'cmt_2'},
{'id': 'cmt_6', 'name': 'jf3djs', 'prev': 'cmt_3'},
{'id': 'cmt_7', 'name': 'z45dsw', 'prev': 'cmt_3'},
{'id': 'cmt_8', 'name': 'djw4ls', 'prev': 'cmt_6'},
{'id': 'cmt_9', 'name': '3edfk3', 'prev': 'cmt_4'},
{'id': 'cmt_10', 'name': 'fdhj3fg', 'prev': 'cmt_4'},
{'id': 'cmt_11', 'name': 'dk32fhj', 'prev': 'cmt_5'},
{'id': 'cmt_12', 'name': 'dhj45kv', 'prev': 'cmt_1'}
];
copied to clipboard
Add it to a List
List<Commit> commits = [];
copied to clipboard
Pass it as a parameter to the widget
body: Center(
child: GitGraph(commits: commits),
),
copied to clipboard
Running the project locally #

Setting things up:

Clone the repository: git clone [email protected]:Sameerkash/flutter_gitgraph.git
To view your current channel: flutter channel
Change the flutter chanell to beta to test it for web: flutter channel dev
Upgrade: flutter upgrade

Contributing #
Contributing Guide #
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements.
Good First Issues #
To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs/features which have a relatively limited scope. This is a great place to get started.

Copyright and License #
Copyright (c) 2021 Sameer Kashyap under the MIT license.
Inspired by GitGraph.js

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.