VerticalSeekBarRenderBox constructor
VerticalSeekBarRenderBox(
- Color lineColor,
- int thumbSize,
- Color thumbColor, {
- int defaultProgress = 0,
- int lineWidth = 0,
- SeekBarStarted? seekBarStarted,
- SeekBarProgress? seekBarProgress,
- SeekBarFinished? seekBarFinished,
- bool scaleWhileDrag = true,
- int percentSplit = 0,
- int percentSplitHeight = 0,
- Color percentSplitColor = Colors.transparent,
- bool autoJump2Split = true,
- bool fillProgress = false,
Implementation
VerticalSeekBarRenderBox(
this.lineColor,
this.thumbSize,
this.thumbColor, {
this.defaultProgress = 0,
this.lineWidth = 0,
this.seekBarStarted,
this.seekBarProgress,
this.seekBarFinished,
this.scaleWhileDrag = true,
this.percentSplit = 0,
this.percentSplitHeight = 0,
this.percentSplitColor = Colors.transparent,
this.autoJump2Split = true,
this.fillProgress = false,
}) {
progress = defaultProgress * 1.0 / 100;
if (percentSplit > 100) {
percentSplit = 0;
}
_drag = VerticalDragGestureRecognizer()
..onStart = (DragStartDetails details) {
_startDragThumbPosition(details.localPosition);
}
..onUpdate = (DragUpdateDetails details) {
_updateDragThumbPosition(details.localPosition);
}
..onCancel = () {
_finishDragThumbPosition();
}
..onEnd = (_) {
_finishDragThumbPosition();
};
}