ChartStyle constructor
const
ChartStyle({
- double volumeHeightFactor = 0.2,
- double priceLabelWidth = 48.0,
- double timeLabelHeight = 24.0,
- TextStyle timeLabelStyle = const TextStyle(fontSize: 16, color: Colors.grey),
- TextStyle priceLabelStyle = const TextStyle(fontSize: 12, color: Colors.grey),
- TextStyle overlayTextStyle = const TextStyle(fontSize: 16, color: Colors.white),
- Color priceGainColor = Colors.green,
- Color priceLossColor = Colors.red,
- Color volumeColor = Colors.grey,
- List<
Paint> trendLineStyles = const [], - Color priceGridLineColor = Colors.grey,
- Color selectionHighlightColor = const Color(0x33757575),
- 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),
});