CircularSeekBar constructor

const CircularSeekBar({
  1. Key? key,
  2. required double width,
  3. required double height,
  4. double progress = 0,
  5. double minProgress = 0,
  6. double maxProgress = 100,
  7. double startAngle = 0,
  8. double sweepAngle = 360,
  9. double barWidth = 10,
  10. Color trackColor = Colors.white54,
  11. List<Color> trackGradientColors = const [],
  12. Color progressColor = Colors.blue,
  13. List<Color> progressGradientColors = const [],
  14. StrokeCap strokeCap = StrokeCap.round,
  15. bool animation = true,
  16. int animDurationMillis = 1000,
  17. Curve curves = Curves.linear,
  18. double innerThumbRadius = 0,
  19. double innerThumbStrokeWidth = 0,
  20. Color innerThumbColor = Colors.white,
  21. double outerThumbRadius = 0,
  22. double outerThumbStrokeWidth = 0,
  23. Color outerThumbColor = Colors.blueAccent,
  24. double dashGap = 0,
  25. double dashWidth = 0,
  26. ValueNotifier<double>? valueNotifier,
  27. VoidCallback? onEnd,
  28. bool interactive = true,
  29. Widget? child,
})

Constructor of CircularSeekBar.

Implementation

const CircularSeekBar({
  Key? key,
  required this.width,
  required this.height,
  this.progress = 0,
  this.minProgress = 0,
  this.maxProgress = 100,
  this.startAngle = 0,
  this.sweepAngle = 360,
  this.barWidth = 10,
  this.trackColor = Colors.white54,
  this.trackGradientColors = const [],
  this.progressColor = Colors.blue,
  this.progressGradientColors = const [],
  this.strokeCap = StrokeCap.round,
  this.animation = true,
  this.animDurationMillis = 1000,
  this.curves = Curves.linear,
  this.innerThumbRadius = 0,
  this.innerThumbStrokeWidth = 0,
  this.innerThumbColor = Colors.white,
  this.outerThumbRadius = 0,
  this.outerThumbStrokeWidth = 0,
  this.outerThumbColor = Colors.blueAccent,
  this.dashGap = 0,
  this.dashWidth = 0,
  this.valueNotifier,
  this.onEnd,
  this.interactive = true,
  this.child,
}) : super(key: key);