Changed size ring chart

This commit is contained in:
Juan Gilsanz Polo 2023-10-29 03:08:15 +01:00
parent d14dca8bd8
commit a8bd57904c
3 changed files with 3 additions and 2 deletions

View file

@ -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)
<br>

View file

@ -186,7 +186,7 @@ class _TopItemsState extends State<TopItems> {
if (widget.data.isNotEmpty && width <= 700) ...[
if (_showChart) ...[
SizedBox(
height: 300,
height: 150,
child: chart
),
const SizedBox(height: 16),

View file

@ -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,