RulerPicker constructor

RulerPicker({
  1. required ValueChangedCallback onValueChanged,
  2. required double width,
  3. required double height,
  4. required String onBuildRulerScaleText(
    1. int index,
    2. num rulerScaleValue
    ),
  5. List<RulerRange> ranges = const [],
  6. double rulerMarginTop = 0,
  7. List<ScaleLineStyle> scaleLineStyleList = const [ScaleLineStyle(scale: 0, color: Color.fromARGB(255, 188, 194, 203), width: 2, height: 32), ScaleLineStyle(color: Color.fromARGB(255, 188, 194, 203), width: 1, height: 20)],
  8. TextStyle rulerScaleTextStyle = const TextStyle(color: Color.fromARGB(255, 188, 194, 203), fontSize: 14),
  9. Widget? marker,
  10. Color rulerBackgroundColor = Colors.white,
  11. RulerPickerController? controller,
})

Implementation

RulerPicker({
  required this.onValueChanged,
  required this.width,
  required this.height,
  required this.onBuildRulerScaleText,
  this.ranges = const [],
  this.rulerMarginTop = 0,
  this.scaleLineStyleList = const [
    ScaleLineStyle(
        scale: 0,
        color: Color.fromARGB(255, 188, 194, 203),
        width: 2,
        height: 32),
    ScaleLineStyle(
        color: Color.fromARGB(255, 188, 194, 203), width: 1, height: 20),
  ],
  this.rulerScaleTextStyle = const TextStyle(
    color: Color.fromARGB(255, 188, 194, 203),
    fontSize: 14,
  ),
  this.marker,
  this.rulerBackgroundColor = Colors.white,
  this.controller,
});