File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
lib/headlines-feed/widgets Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments