VerticalProgressBar constructor
const
VerticalProgressBar({
- Key? key,
- required double height,
- required double maxValue,
- required double currentPosition,
- required ValueChanged<
double> onChanged, - double? bufferedPosition,
- ValueChanged<
double> ? onChangeStart, - ValueChanged<
double> ? onChangeEnd, - Color bufferedColor = Colors.grey,
- Color progressColor = Colors.blue,
- Color thumbColor = const Color.fromRGBO(13, 71, 161, 1),
- double thumbDiameter = 18,
- double trackWidth = 10,
- double enabledWidth = 10,
- bool isThumbVisible = true,
Implementation
const VerticalProgressBar({
super.key,
required this.height,
required this.maxValue,
required this.currentPosition,
required this.onChanged,
this.bufferedPosition,
this.onChangeStart,
this.onChangeEnd,
this.bufferedColor = Colors.grey,
this.progressColor = Colors.blue,
this.thumbColor = const Color.fromRGBO(13, 71, 161, 1),
this.thumbDiameter = 18,
this.trackWidth = 10,
this.enabledWidth = 10,
this.isThumbVisible = true,
}) : assert(trackWidth < thumbDiameter,
'trackWidth must be less than thumbDiameter'),
assert(currentPosition >= 0 && currentPosition <= maxValue,
'currentPosition must be within 0 and maxValue');