Skip to content

Commit ffd4d0f

Browse files
committed
feat(ui): improve scaffold background consistency
- Replace hardcoded Colors.black with theme.scaffoldBackgroundColor in gradient fade effects across multiple pages - Adjust padding style in discover page for better icon alignment
1 parent f6bc070 commit ffd4d0f

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

lib/discover/view/discover_page.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ class _SourceCategoryRowState extends State<_SourceCategoryRow> {
174174
style: TextButton.styleFrom(
175175
// Remove default padding to align the icon perfectly
176176
// with the right edge.
177-
padding:
178-
const EdgeInsets.symmetric(vertical: AppSpacing.sm),
177+
padding: const EdgeInsets.symmetric(
178+
vertical: AppSpacing.sm,
179+
),
179180
),
180181
onPressed: () {
181182
context.pushNamed(
@@ -230,8 +231,8 @@ class _SourceCategoryRowState extends State<_SourceCategoryRow> {
230231

231232
final colors = <Color>[
232233
if (showStartFade) Colors.transparent,
233-
Colors.black,
234-
Colors.black,
234+
theme.scaffoldBackgroundColor,
235+
theme.scaffoldBackgroundColor,
235236
if (_showEndFade) Colors.transparent,
236237
];
237238

lib/headline-details/view/headline_details_page.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ class _HeadlineDetailsPageState extends State<HeadlineDetailsPage> {
417417

418418
final colors = <Color>[
419419
if (showStartFade) Colors.transparent,
420-
Colors.black,
421-
Colors.black,
420+
theme.scaffoldBackgroundColor,
421+
theme.scaffoldBackgroundColor,
422422
if (showEndFade) Colors.transparent,
423423
];
424424

lib/headlines-feed/widgets/saved_filters_bar.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ class _SavedFiltersBarState extends State<SavedFiltersBar> {
257257
// Define the gradient colors and stops based on fade visibility.
258258
final colors = <Color>[
259259
if (showStartFade) Colors.transparent,
260-
Colors.black,
261-
Colors.black,
260+
theme.scaffoldBackgroundColor,
261+
theme.scaffoldBackgroundColor,
262262
if (showEndFade) Colors.transparent,
263263
];
264264

lib/shared/widgets/feed_decorators/content_collection_decorator_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ class _ContentCollectionViewState extends State<_ContentCollectionView> {
163163

164164
final colors = <Color>[
165165
if (showStartFade) Colors.transparent,
166-
Colors.black,
167-
Colors.black,
166+
theme.scaffoldBackgroundColor,
167+
theme.scaffoldBackgroundColor,
168168
if (showEndFade) Colors.transparent,
169169
];
170170

0 commit comments

Comments
 (0)