ChartStyle constructor

const ChartStyle({
  1. double volumeHeightFactor = 0.2,
  2. double priceLabelWidth = 48.0,
  3. double timeLabelHeight = 24.0,
  4. TextStyle timeLabelStyle = const TextStyle(fontSize: 16, color: Colors.grey),
  5. TextStyle priceLabelStyle = const TextStyle(fontSize: 12, color: Colors.grey),
  6. TextStyle overlayTextStyle = const TextStyle(fontSize: 16, color: Colors.white),
  7. Color priceGainColor = Colors.green,
  8. Color priceLossColor = Colors.red,
  9. Color volumeColor = Colors.grey,
  10. List<Paint> trendLineStyles = const [],
  11. Color priceGridLineColor = Colors.grey,
  12. Color selectionHighlightColor = const Color(0x33757575),
  13. Color overlayBackgroundColor = const Color(0xEE757575),
})

Implementation

const ChartStyle({
  this.volumeHeightFactor = 0.2,
  this.priceLabelWidth = 48.0,
  this.timeLabelHeight = 24.0,
  this.timeLabelStyle = const TextStyle(
    fontSize: 16,
    color: Colors.grey,
  ),
  this.priceLabelStyle = const TextStyle(
    fontSize: 12,
    color: Colors.grey,
  ),
  this.overlayTextStyle = const TextStyle(
    fontSize: 16,
    color: Colors.white,
  ),
  this.priceGainColor = Colors.green,
  this.priceLossColor = Colors.red,
  this.volumeColor = Colors.grey,
  this.trendLineStyles = const [],
  this.priceGridLineColor = Colors.grey,
  this.selectionHighlightColor = const Color(0x33757575),
  this.overlayBackgroundColor = const Color(0xEE757575),
});