MacdChart constructor

const MacdChart({
  1. Key? key,
  2. Widget? child,
  3. double paddingTop = 0,
  4. Color upperColor = Colors.red,
  5. Color fairColor = Colors.black45,
  6. Color lowerColor = Colors.green,
  7. double strokeWidth = 1,
  8. Color gridLineColor = Colors.black12,
  9. double gridLineWidth = 0.5,
  10. int gridHorizontalGrids = 3,
  11. int gridVerticalGrids = 3,
  12. PaintingStyle upperStyle = PaintingStyle.fill,
  13. PaintingStyle fairStyle = PaintingStyle.fill,
  14. PaintingStyle lowerStyle = PaintingStyle.fill,
  15. double difAndDeaLineWidth = 0.5,
  16. Color difLineColor = Colors.yellow,
  17. Color deaLineColor = Colors.blue,
  18. Color crossLineColor = Colors.red,
  19. double crossLineWidth = 0.5,
  20. TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 8),
  21. bool showText = true,
})

Implementation

const MacdChart({
  super.key,
  super.child,
  this.paddingTop = 0,
  this.upperColor = Colors.red,
  this.fairColor = Colors.black45,
  this.lowerColor = Colors.green,
  this.strokeWidth = 1,
  this.gridLineColor = Colors.black12,
  this.gridLineWidth = 0.5,
  this.gridHorizontalGrids = 3,
  this.gridVerticalGrids = 3,
  this.upperStyle = PaintingStyle.fill,
  this.fairStyle = PaintingStyle.fill,
  this.lowerStyle = PaintingStyle.fill,
  this.difAndDeaLineWidth = 0.5,
  this.difLineColor = Colors.yellow,
  this.deaLineColor = Colors.blue,
  this.crossLineColor = Colors.red,
  this.crossLineWidth = 0.5,
  this.textStyle = const TextStyle(color: Colors.black, fontSize: 8),
  this.showText = true,
});