Skip to content

Commit 0769dfa

Browse files
committed
fix(feed_decorators): adjust color scheme for suggestion item
- Set card background color to surfaceVariant - Change icon and placeholder image color to onSurface - Revert placeholder icon color to onSurfaceVariant
1 parent be43e40 commit 0769dfa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/shared/widgets/feed_decorators/suggestion_item_widget.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class SuggestionItemWidget extends StatelessWidget {
5151
}
5252

5353
return Card(
54+
color: theme.colorScheme.surfaceVariant,
5455
margin: const EdgeInsets.symmetric(horizontal: AppSpacing.sm),
5556
child: SizedBox(
5657
width: 160,
@@ -64,7 +65,7 @@ class SuggestionItemWidget extends StatelessWidget {
6465
width: 64,
6566
height: 64,
6667
decoration: BoxDecoration(
67-
color: theme.colorScheme.surfaceVariant,
68+
color: theme.colorScheme.surface,
6869
borderRadius: BorderRadius.circular(AppSpacing.sm),
6970
),
7071
child: imageUrl.isNotEmpty
@@ -75,14 +76,14 @@ class SuggestionItemWidget extends StatelessWidget {
7576
fit: BoxFit.cover,
7677
errorBuilder: (context, error, stackTrace) => Icon(
7778
Icons.broken_image,
78-
color: theme.colorScheme.onSurfaceVariant,
79+
color: theme.colorScheme.onSurface,
7980
),
8081
),
8182
)
8283
: Icon(
8384
// Use a more specific icon for sources as a fallback.
8485
item is Source ? Icons.source : Icons.category,
85-
color: theme.colorScheme.onSurfaceVariant,
86+
color: theme.colorScheme.onSurface,
8687
),
8788
),
8889
const SizedBox(height: AppSpacing.md),

0 commit comments

Comments
 (0)