Skip to content

Commit b54c43c

Browse files
committed
style(headlines-feed): add horizontal padding to ChoiceChip labels
- Added horizontal padding of AppSpacing.xs to labels of all ChoiceChip widgets in the SavedFiltersBar - Improved readability and visual consistency of filter chips
1 parent 5541ef6 commit b54c43c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/headlines-feed/widgets/saved_filters_bar.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ class _SavedFiltersBarState extends State<SavedFiltersBar> {
7070
padding: const EdgeInsets.symmetric(horizontal: AppSpacing.xs),
7171
child: ChoiceChip(
7272
label: Text(l10n.savedFiltersBarAllLabel),
73+
labelPadding: const EdgeInsets.symmetric(
74+
horizontal: AppSpacing.xs,
75+
),
7376
selected: activeFilterId == _allFilterId,
7477
showCheckmark: false,
7578
onSelected: (_) {
@@ -88,6 +91,9 @@ class _SavedFiltersBarState extends State<SavedFiltersBar> {
8891
),
8992
child: ChoiceChip(
9093
label: Text(filter.name),
94+
labelPadding: const EdgeInsets.symmetric(
95+
horizontal: AppSpacing.xs,
96+
),
9197
selected: activeFilterId == filter.id,
9298
showCheckmark: false,
9399
onSelected: (_) {
@@ -108,6 +114,9 @@ class _SavedFiltersBarState extends State<SavedFiltersBar> {
108114
),
109115
child: ChoiceChip(
110116
label: Text(l10n.savedFiltersBarCustomLabel),
117+
labelPadding: const EdgeInsets.symmetric(
118+
horizontal: AppSpacing.xs,
119+
),
111120
showCheckmark: false,
112121
selected: true,
113122
onSelected: null,

0 commit comments

Comments
 (0)