mirror of
https://github.com/wger-project/flutter.git
synced 2026-12-02 10:09:11 +01:00
fix: use theme color for brightness mode compatibility
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -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),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user