don't hardcode cyan, use primary colorscheme

This commit is contained in:
Cyanose 2023-08-12 22:04:32 +02:00
parent 67b1811a89
commit d6abad15da

View file

@ -28,7 +28,9 @@ class MealWidget extends StatelessWidget {
Expanded(
child: Text(
meal.name,
style: Theme.of(context).textTheme.titleLarge,
style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: Theme.of(context).colorScheme.primary,
),
),
),
Text("${meal.calories.toStringAsFixed(1)} kcal"),