INNER CODE UNIT · Dart
maxOpacity
matthewfx/sleek_circular_slider · lib/src/curve_painter.dart:97
final maxOpacity = math.min(1.0, appearance.shadowMaxOpacity);
final repetitions = math.max(
1,
((appearance.shadowWidth - appearance.progressBarWidth) / step).round(),
);
final opacityStep = maxOpacity / repetitions;
return ShadowConfig(
step: step,
maxOpacity: maxOpacity,
repetitions: repetitions,
opacityStep: opacityStep,
);
}
void _drawProgressBar(Canvas canvas, Size size) {
final progressBarPaint =
Paint()