KLineOverlayStyle constructor

const KLineOverlayStyle({
  1. Color priceLineColor = Colors.blue,
  2. double priceLineStrokeWidth = 1.0,
  3. TextStyle priceLineTextStyle = const TextStyle(color: Colors.white, fontSize: 10.0, height: 1.0),
  4. Color priceLineLabelBackgroundColor = Colors.blue,
  5. EdgeInsets priceLineLabelPadding = const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
  6. double priceLineLabelBorderRadius = 3.0,
  7. Color zoneColor = Colors.blue,
  8. double zoneOpacity = 0.12,
  9. TextStyle zoneTextStyle = const TextStyle(color: Colors.blue, fontSize: 10.0, height: 1.0),
  10. Color buyMarkerColor = Colors.green,
  11. Color sellMarkerColor = Colors.red,
  12. Color customMarkerColor = Colors.blue,
  13. Color markerTextColor = Colors.white,
  14. double markerRadius = 6.0,
  15. TextStyle markerTextStyle = const TextStyle(color: Colors.white, fontSize: 10.0, height: 1.0, fontWeight: FontWeight.w600),
  16. Color verticalLineColor = Colors.blueGrey,
  17. double verticalLineStrokeWidth = 1.0,
  18. TextStyle verticalLineTextStyle = const TextStyle(color: Colors.blueGrey, fontSize: 10.0, height: 1.0),
})

Creates display-only overlay visual styling.

Implementation

const KLineOverlayStyle({
  this.priceLineColor = Colors.blue,
  this.priceLineStrokeWidth = 1.0,
  this.priceLineTextStyle = const TextStyle(
    color: Colors.white,
    fontSize: 10.0,
    height: 1.0,
  ),
  this.priceLineLabelBackgroundColor = Colors.blue,
  this.priceLineLabelPadding =
      const EdgeInsets.symmetric(horizontal: 4, vertical: 2),
  this.priceLineLabelBorderRadius = 3.0,
  this.zoneColor = Colors.blue,
  this.zoneOpacity = 0.12,
  this.zoneTextStyle = const TextStyle(
    color: Colors.blue,
    fontSize: 10.0,
    height: 1.0,
  ),
  this.buyMarkerColor = Colors.green,
  this.sellMarkerColor = Colors.red,
  this.customMarkerColor = Colors.blue,
  this.markerTextColor = Colors.white,
  this.markerRadius = 6.0,
  this.markerTextStyle = const TextStyle(
    color: Colors.white,
    fontSize: 10.0,
    height: 1.0,
    fontWeight: FontWeight.w600,
  ),
  this.verticalLineColor = Colors.blueGrey,
  this.verticalLineStrokeWidth = 1.0,
  this.verticalLineTextStyle = const TextStyle(
    color: Colors.blueGrey,
    fontSize: 10.0,
    height: 1.0,
  ),
});