INNER CODE UNIT · Dart

repetitions

matthewfx/sleek_circular_slider · lib/src/curve_painter.dart:98

    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()
          ..shader = _createProgressBarGradient().createShader(progressBarRect!)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…