Skip to content
Merged
2 changes: 1 addition & 1 deletion packages/flutter/lib/src/material/progress_indicator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ class _CircularProgressIndicatorPainter extends CustomPainter {
..strokeCap = strokeCap ?? StrokeCap.round
..style = PaintingStyle.stroke;
// If hasGap is true, draw the background arc with a gap.
if (hasGap && value! > _epsilon) {
if (hasGap && value != null && value! > _epsilon) {
final double arcRadius = arcActualSize.shortestSide / 2;
final double strokeRadius = strokeWidth / arcRadius;
final double gapRadius = trackGap! / arcRadius;
Expand Down