fix: use theme color for brightness mode compatibility

This commit is contained in:
Anja Klipic
2026-05-27 10:39:22 +02:00
parent a699fd472a
commit 70a5ae3ddf
2 changed files with 4 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ class IngredientDetails extends StatelessWidget {
Text(
ingredient.brand!,
style: Theme.of(context).textTheme.titleSmall?.copyWith(
color: DefaultTextStyle.of(context).style.color?.withValues(alpha: 0.6),
color: Theme.of(context).colorScheme.onSurfaceVariant,
),
),
],

View File

@@ -220,7 +220,9 @@ class _IngredientTypeaheadState extends ConsumerState<IngredientTypeahead> {
TextSpan(
text: ' ${ingredient.brand}',
style: TextStyle(
color: DefaultTextStyle.of(context).style.color?.withValues(alpha: 0.6),
color: Theme.of(
context,
).colorScheme.onSurfaceVariant.withValues(alpha: 0.7),
),
),
],