tweak design

This commit is contained in:
Dieter Plaetinck
2024-05-03 13:06:24 +02:00
parent 820dee2c0d
commit 00b5cc2f57

View File

@@ -21,6 +21,8 @@ class NutritionalDiaryTable extends StatelessWidget {
nutrionalDiaryHeader(context),
...plan.logEntriesValues.entries
.map((entry) => nutritionDiaryEntry(context, entry.key, entry.value))
.toList()
.reversed,
],
);
}
@@ -49,7 +51,8 @@ class NutritionalDiaryTable extends StatelessWidget {
arguments: NutritionalDiaryArguments(plan, date),
),
child: Text(
style: TextStyle(color: LIST_OF_COLORS3.first),
style:
Theme.of(context).textTheme.titleMedium?.copyWith(color: LIST_OF_COLORS3.first),
DateFormat.Md(Localizations.localeOf(context).languageCode).format(date),
)),
Text(values.energy.toStringAsFixed(0)),