From a8bd57904ceeef508500c37aa4a79348bb5d797b Mon Sep 17 00:00:00 2001 From: Juan Gilsanz Polo Date: Sun, 29 Oct 2023 03:08:15 +0100 Subject: [PATCH] Changed size ring chart --- README.md | 2 ++ lib/screens/home/top_items.dart | 2 +- lib/widgets/custom_pie_chart.dart | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 864b3de..4128ac3 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ On [this repository](https://github.com/JuanRodenas/Pihole_list) you can find a - [flutter dotenv](https://pub.dev/packages/flutter_dotenv) - [flutter reorderable list](https://pub.dev/packages/flutter_reorderable_list) - [pie chart](https://pub.dev/packages/pie_chart) +- [go router](https://pub.dev/packages/go_router) +- [flutter hooks](https://pub.dev/packages/flutter_hooks)
diff --git a/lib/screens/home/top_items.dart b/lib/screens/home/top_items.dart index 06ef00e..ebf4e94 100644 --- a/lib/screens/home/top_items.dart +++ b/lib/screens/home/top_items.dart @@ -186,7 +186,7 @@ class _TopItemsState extends State { if (widget.data.isNotEmpty && width <= 700) ...[ if (_showChart) ...[ SizedBox( - height: 300, + height: 150, child: chart ), const SizedBox(height: 16), diff --git a/lib/widgets/custom_pie_chart.dart b/lib/widgets/custom_pie_chart.dart index 2968568..6af7e11 100644 --- a/lib/widgets/custom_pie_chart.dart +++ b/lib/widgets/custom_pie_chart.dart @@ -16,7 +16,6 @@ class CustomPieChart extends StatelessWidget { return PieChart( dataMap: data, animationDuration: const Duration(milliseconds: 800), - chartRadius: MediaQuery.of(context).size.width / 3, colorList: colors, initialAngleInDegree: 270, chartType: ChartType.ring,