VentCircleProgressBar constructor
const
VentCircleProgressBar({
- Key? key,
- required double progress,
- double size = 48,
- double strokeWidth = 6.0,
- Color backgroundColor = const Color(0xFFCDCFDB),
- Color progressColor = VentColorSwatch.Primary,
- double startAngle = .625,
- String? textValue,
- TextStyle? textStyle,
- Duration animationDuration = const Duration(seconds: 1),
- bool withAnimation = true,
- Curve curve = Curves.linear,
Implementation
const VentCircleProgressBar({
Key? key,
required this.progress,
this.size = 48,
this.strokeWidth = 6.0,
this.backgroundColor = const Color(0xFFCDCFDB),
this.progressColor = VentColorSwatch.Primary,
this.startAngle = .625,
this.textValue,
this.textStyle,
this.animationDuration = const Duration(seconds: 1),
this.withAnimation = true,
this.curve = Curves.linear,
}) : assert(
progress >= 0 && progress <= 1, 'Progress must be between 0 and 1'),
assert(startAngle >= 0 && startAngle <= 1,
'Start angle must be between 0 and 1'),
builder = null,
super(key: key);