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