Add a new line after the macroutrient name

This makes the pie chart more readable, before the grams were often cropped
This commit is contained in:
Roland Geider
2021-04-08 12:19:37 +02:00
parent 81a22a4052
commit 0a2222de21

View File

@@ -50,7 +50,7 @@ class NutritionalPlanPieChartWidget extends StatelessWidget {
[AppLocalizations.of(context)!.carbohydrates, _nutritionalValues.carbohydrates],
],
labelAccessorFn: (List<dynamic> row, _) =>
'${row[0]}, ${row[1].toStringAsFixed(0)}${AppLocalizations.of(context)!.g}',
'${row[0]}\n${row[1].toStringAsFixed(0)}${AppLocalizations.of(context)!.g}',
)
],
defaultRenderer: new charts.ArcRendererConfig(