KLineChartStyle constructor

const KLineChartStyle({
  1. Color backgroundColor = Colors.transparent,
  2. Color gridLineColor = const Color(0x33607d8b),
  3. double gridLineWidth = 0.0,
  4. TextStyle rulerTextStyle = const TextStyle(color: Color(0xff999999), fontSize: 12.0, height: 1.0),
  5. Color highLowLineColor = const Color(0xff999999),
  6. double highLowLineWidth = 1.0,
  7. TextStyle highLowTextStyle = const TextStyle(color: Color(0xff666666), fontSize: 13.0, height: 1.0),
  8. Color currentPriceLineColor = Colors.black54,
  9. double currentPriceLineWidth = 1.0,
  10. Color currentPriceBackgroundColor = Colors.white,
  11. TextStyle currentPriceTextStyle = const TextStyle(color: Color(0xff999999), fontSize: 12.0, height: 1.0),
  12. Color timeLineColor = Colors.blue,
  13. double timeLineWidth = 1.0,
  14. Color timeLineFillColor = const Color(0xff40c4ff),
})

Creates main chart visual styling.

Implementation

const KLineChartStyle({
  this.backgroundColor = Colors.transparent,
  this.gridLineColor = const Color(0x33607d8b),
  this.gridLineWidth = 0.0,
  this.rulerTextStyle = const TextStyle(
    color: Color(0xff999999),
    fontSize: 12.0,
    height: 1.0,
  ),
  this.highLowLineColor = const Color(0xff999999),
  this.highLowLineWidth = 1.0,
  this.highLowTextStyle = const TextStyle(
    color: Color(0xff666666),
    fontSize: 13.0,
    height: 1.0,
  ),
  this.currentPriceLineColor = Colors.black54,
  this.currentPriceLineWidth = 1.0,
  this.currentPriceBackgroundColor = Colors.white,
  this.currentPriceTextStyle = const TextStyle(
    color: Color(0xff999999),
    fontSize: 12.0,
    height: 1.0,
  ),
  this.timeLineColor = Colors.blue,
  this.timeLineWidth = 1.0,
  this.timeLineFillColor = const Color(0xff40c4ff),
});