ScalePicker constructor
ScalePicker({
- required ValueChangedCallback onValueChange,
- required double width,
- required double height,
- bool isInvertedScale = false,
- Color backgroundColor = Colors.white,
- Color smallTickColor = Colors.black,
- required ScalePickerController scalePickerController,
- Color bigTickColor = Colors.green,
- bool isAxisVertical = false,
- Widget? marker,
- bool shouldTextBeAlignedHorizontallyOnVerticalScroll = false,
- Duration animationDuration = const Duration(milliseconds: 500),
- TextStyle? textStyle = const TextStyle(fontSize: 14.0),
- TextStyle? styleOfScrollValueMatched = const TextStyle(fontSize: 22.0, color: Colors.orangeAccent),
- double initialValue = 0,
- Color markerColor = Colors.yellow,
Implementation
ScalePicker(
{required this.onValueChange,
required this.width,
required this.height,
this.isInvertedScale = false,
this.backgroundColor = Colors.white,
this.smallTickColor = Colors.black,
required this.scalePickerController,
this.bigTickColor = Colors.green,
this.isAxisVertical = false,
this.marker,
this.shouldTextBeAlignedHorizontallyOnVerticalScroll = false,
this.animationDuration = const Duration(milliseconds: 500),
this.textStyle = const TextStyle(fontSize: 14.0),
this.styleOfScrollValueMatched =
const TextStyle(fontSize: 22.0, color: Colors.orangeAccent),
this.initialValue = 0,
this.markerColor = Colors.yellow})
: assert(isAxisVertical ? width >= 80 : height >= 80);