From ab8586b5fb3a2f0e4f5945a5ea4aecac62ed3056 Mon Sep 17 00:00:00 2001 From: imaNNeoFighT Date: Sat, 11 Jul 2020 02:17:32 +0430 Subject: [PATCH] PieChartData set default centerSpaceRadius to double.infinity, #384. --- lib/src/chart/pie_chart/pie_chart_data.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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