horizontalBand function

Widget horizontalBand({
  1. Key? key,
  2. required dynamic scale,
  3. required dynamic startValue,
  4. required dynamic endValue,
  5. required double width,
  6. required double height,
  7. Color fillColor = const Color(0xFF666666),
  8. double fillOpacity = 0.2,
  9. bool showBorder = false,
  10. String? label,
  11. TextStyle? labelStyle,
})

Creates a horizontal area annotation (band).

Implementation

Widget horizontalBand({
  Key? key,
  required dynamic scale,
  required dynamic startValue,
  required dynamic endValue,
  required double width,
  required double height,
  Color fillColor = const Color(0xFF666666),
  double fillOpacity = 0.2,
  bool showBorder = false,
  String? label,
  TextStyle? labelStyle,
}) {
  return AreaAnnotation(
    key: key,
    scale: scale,
    startValue: startValue,
    endValue: endValue,
    width: width,
    height: height,
    config: AreaAnnotationConfig(
      fillColor: fillColor,
      fillOpacity: fillOpacity,
      showBorder: showBorder,
      orientation: AnnotationOrientation.horizontal,
    ),
    label: label,
    labelStyle: labelStyle,
  );
}