RulerPicker constructor
RulerPicker({
- required ValueChangedCallback onValueChanged,
- required double width,
- required double height,
- required String onBuildRulerScaleText(),
- List<
RulerRange> ranges = const [], - double rulerMarginTop = 0,
- 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)], - TextStyle rulerScaleTextStyle = const TextStyle(color: Color.fromARGB(255, 188, 194, 203), fontSize: 14),
- Widget? marker,
- Color rulerBackgroundColor = Colors.white,
- 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,
});