VentCircleProgressBar.builder constructor
const
VentCircleProgressBar.builder({
- Key? key,
- required double progress,
- required Widget builder(
- BuildContext context,
- double valueFactor,
- double progress
- double size = 48,
- double strokeWidth = 6.0,
- Color backgroundColor = const Color(0xFFCDCFDB),
- Color progressColor = VentColorSwatch.Primary,
- double startAngle = .625,
- Duration animationDuration = const Duration(seconds: 1),
- bool withAnimation = true,
- Curve curve = Curves.linear,
Implementation
const VentCircleProgressBar.builder({
Key? key,
required this.progress,
required this.builder,
this.size = 48,
this.strokeWidth = 6.0,
this.backgroundColor = const Color(0xFFCDCFDB),
this.progressColor = VentColorSwatch.Primary,
this.startAngle = .625,
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'),
textValue = null,
textStyle = null,
super(key: key);