mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-06 15:54:31 +01:00
use "protein, carbs, fat" ordering on pie chart, just like elsewhere
This commit is contained in:
1 parent
a1e57fda0d
commit
70690c41aa
1 file changed
+2
-2
@@ -194,8 +194,8 @@ class FlNutritionalPlanPieChartState extends State<FlNutritionalPlanPieChartWidg
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
(AppLocalizations.of(context).carbohydrates, LIST_OF_COLORS3[0]),
|
||||
(AppLocalizations.of(context).protein, LIST_OF_COLORS3[1]),
|
||||
(AppLocalizations.of(context).carbohydrates, LIST_OF_COLORS3[0]),
|
||||
(AppLocalizations.of(context).fat, LIST_OF_COLORS3[2])
|
||||
]
|
||||
.map((e) => Padding(
|
||||
@@ -217,8 +217,8 @@ class FlNutritionalPlanPieChartState extends State<FlNutritionalPlanPieChartWidg
|
||||
|
||||
List<PieChartSectionData> showingSections() {
|
||||
return [
|
||||
(0, widget.nutritionalValues.carbohydrates),
|
||||
(1, widget.nutritionalValues.protein),
|
||||
(0, widget.nutritionalValues.carbohydrates),
|
||||
(2, widget.nutritionalValues.fat)
|
||||
].map((e) {
|
||||
final isTouched = e.$1 == touchedIndex;
|
||||
|
||||
Reference in new issue
Block a user