Skip to content

Commit 8e9abac

Browse files
committed
style(account): Improve followed items page UI
- Updated tile styling - Adjusted spacing - Added color to icons
1 parent c0c72c3 commit 8e9abac

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

lib/account/view/manage_followed_items/manage_followed_items_page.dart

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,50 @@ class ManageFollowedItemsPage extends StatelessWidget {
1515
@override
1616
Widget build(BuildContext context) {
1717
final l10n = context.l10n;
18+
final theme = Theme.of(context);
19+
final textTheme = theme.textTheme;
20+
final colorScheme = theme.colorScheme;
1821

1922
return Scaffold(
2023
appBar: AppBar(
2124
title: Text(
2225
l10n.accountContentPreferencesTile,
23-
), // "Content Preferences"
26+
style: textTheme.titleLarge, // Consistent AppBar title style
27+
),
2428
),
2529
body: ListView(
26-
padding: const EdgeInsets.symmetric(vertical: AppSpacing.md),
30+
padding: const EdgeInsets.symmetric(vertical: AppSpacing.paddingSmall), // Adjusted padding
2731
children: [
2832
ListTile(
29-
leading: const Icon(Icons.category_outlined),
30-
title: Text(l10n.headlinesFeedFilterCategoryLabel), // "Categories"
33+
leading: Icon(Icons.category_outlined, color: colorScheme.primary),
34+
title: Text(
35+
l10n.headlinesFeedFilterCategoryLabel, // "Categories"
36+
style: textTheme.titleMedium,
37+
),
3138
trailing: const Icon(Icons.chevron_right),
3239
onTap: () {
3340
context.goNamed(Routes.followedCategoriesListName);
3441
},
3542
),
36-
const Divider(indent: AppSpacing.lg, endIndent: AppSpacing.lg),
43+
const Divider(
44+
indent: AppSpacing.paddingMedium, // Consistent indent
45+
endIndent: AppSpacing.paddingMedium,
46+
),
3747
ListTile(
38-
leading: const Icon(Icons.source_outlined),
39-
title: Text(l10n.headlinesFeedFilterSourceLabel), // "Sources"
48+
leading: Icon(Icons.source_outlined, color: colorScheme.primary),
49+
title: Text(
50+
l10n.headlinesFeedFilterSourceLabel, // "Sources"
51+
style: textTheme.titleMedium,
52+
),
4053
trailing: const Icon(Icons.chevron_right),
4154
onTap: () {
4255
context.goNamed(Routes.followedSourcesListName);
4356
},
4457
),
45-
const Divider(indent: AppSpacing.lg, endIndent: AppSpacing.lg),
58+
const Divider(
59+
indent: AppSpacing.paddingMedium, // Consistent indent
60+
endIndent: AppSpacing.paddingMedium,
61+
),
4662
// ListTile for Followed Countries removed
4763
],
4864
),

0 commit comments

Comments
 (0)