mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-02 10:09:11 +01:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user