VolChart constructor
const
VolChart({
- Key? key,
- Widget? child,
- double paddingTop = 0,
- Color upperColor = Colors.red,
- Color fairColor = Colors.black45,
- Color lowerColor = Colors.green,
- double strokeWidth = 1,
- Color gridLineColor = Colors.black12,
- double gridLineWidth = 0.5,
- int gridHorizontalGrids = 3,
- int gridVerticalGrids = 3,
- PaintingStyle upperStyle = PaintingStyle.fill,
- PaintingStyle fairStyle = PaintingStyle.fill,
- PaintingStyle lowerStyle = PaintingStyle.fill,
- double maStrokeWidth = 0.5,
- Color ma5LineColor = Colors.yellow,
- Color ma10LineColor = Colors.blue,
- bool showMaLine = false,
- Color crossLineColor = Colors.red,
- double crossLineWidth = 0.5,
- TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 8),
- 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,
});