项目作者: shashiben

项目描述 :
A flutter package to build awesome graph
高级语言: Dart
项目地址: git://github.com/shashiben/flutter_custom_graph.git
创建时间: 2020-05-28T07:02:25Z
项目社区:https://github.com/shashiben/flutter_custom_graph

开源协议:Other

下载


customgraph

A Flutter package for creating a custom graph with easy.

Show some :heart: and star the repo to support the project

If you love this package fork the project and star it.

Installation

Clone the project and import the local package

  1. git clone https://github.com/shashiben/flutter_custom_graph.git

Usage

  1. Scaffold(
  2. appBar: AppBar(
  3. centerTitle: true,
  4. title: Text(
  5. "Custom Graph Example",
  6. style: TextStyle(fontWeight: FontWeight.w900, fontSize: 24),
  7. ),
  8. elevation: 0,
  9. backgroundColor: Colors.black,
  10. ),
  11. body: Container(
  12. color: Colors.black,
  13. child: Column(
  14. crossAxisAlignment: CrossAxisAlignment.center,
  15. mainAxisSize: MainAxisSize.max,
  16. mainAxisAlignment: MainAxisAlignment.center,
  17. children: <Widget>[
  18. Container(
  19. decoration: BoxDecoration(
  20. border: Border.all(color: Colors.white),
  21. borderRadius: BorderRadius.circular(15)),
  22. padding: EdgeInsets.all(10),
  23. child: Text(
  24. "Example",
  25. style: TextStyle(
  26. color: Colors.white,
  27. fontWeight: FontWeight.w400,
  28. fontSize: 20),
  29. ),
  30. ),
  31. SizedBox(height: 20,),
  32. CustomGraph(
  33. percentages: [2, 4, 6, 8, 10],
  34. xAxisValues: ["A", "B", "C", "D", "E"],
  35. yAxisValues: ["10", "8", "6", "4", "2", "0"],
  36. rangeBegin: 0,
  37. rangeEnd: 100,
  38. xAxisLabelStart: 0,
  39. indicatorTextMultiplier: 1,
  40. noOfValuestoShow: 4)
  41. ],
  42. ),
  43. ),
  44. ),

Screenshots



Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Getting Started

This project is a starting point for a Dart
package,
a library module containing code that can be shared easily across
multiple Flutter or Dart projects.

For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.