Skip to content

Commit ba37aef

Browse files
committed
format: misc
1 parent b50b8fb commit ba37aef

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/headlines-feed/widgets/saved_filters_bar.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@ class _SavedFiltersBarState extends State<SavedFiltersBar> {
5151
child: BlocBuilder<HeadlinesFeedBloc, HeadlinesFeedState>(
5252
builder: (context, state) {
5353
final savedFilters = state.savedFilters;
54-
final userPreferences = context.watch<AppBloc>().state.userContentPreferences;
54+
final userPreferences = context
55+
.watch<AppBloc>()
56+
.state
57+
.userContentPreferences;
5558

5659
// Determine if the user is following any content to decide whether
5760
// to show the "Followed" filter chip.
58-
final isFollowingItems = (userPreferences?.followedTopics.isNotEmpty ?? false) ||
61+
final isFollowingItems =
62+
(userPreferences?.followedTopics.isNotEmpty ?? false) ||
5963
(userPreferences?.followedSources.isNotEmpty ?? false) ||
6064
(userPreferences?.followedCountries.isNotEmpty ?? false);
6165

62-
6366
final activeFilterId = state.activeFilterId;
6467
final listView = ListView(
6568
controller: _scrollController,

0 commit comments

Comments
 (0)