diff --git a/lib/src/chart/pie_chart/pie_chart_data.dart b/lib/src/chart/pie_chart/pie_chart_data.dart index 1a5d5ca30..8eb728406 100644 --- a/lib/src/chart/pie_chart/pie_chart_data.dart +++ b/lib/src/chart/pie_chart/pie_chart_data.dart @@ -56,7 +56,7 @@ class PieChartData extends BaseChartData with EquatableMixin { PieTouchData pieTouchData, FlBorderData borderData, }) : sections = sections ?? const [], - centerSpaceRadius = centerSpaceRadius ?? double.nan, + centerSpaceRadius = centerSpaceRadius ?? double.infinity, centerSpaceColor = centerSpaceColor ?? Colors.transparent, /// we've disabled `groupSpace` on web, because some BlendModes are [not working](https://github.com/flutter/flutter/issues/56071) yet