VolChart constructor

const VolChart({
  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 maStrokeWidth = 0.5,
  16. Color ma5LineColor = Colors.yellow,
  17. Color ma10LineColor = Colors.blue,
  18. bool showMaLine = false,
  19. Color crossLineColor = Colors.red,
  20. double crossLineWidth = 0.5,
  21. TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 8),
  22. bool showText = true,
})

Implementation

const VolChart({
  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.maStrokeWidth = 0.5,
  this.ma5LineColor = Colors.yellow,
  this.ma10LineColor = Colors.blue,
  this.showMaLine = false,
  this.crossLineColor = Colors.red,
  this.crossLineWidth = 0.5,
  this.textStyle = const TextStyle(color: Colors.black, fontSize: 8),
  this.showText = true,
});