Skip to content

Commit 15afd93

Browse files
committed
refactor(headlines-feed): update countries filter usage description and imports
- Update the documentation for _onCountriesFilterRequested method to reflect the new usage examples ('hasActiveSources', 'hasActiveHeadlines'). - Add import statement for CountryFilterPage in the headlines-feed view. - Improve code organization and readability.
1 parent efe3e9e commit 15afd93

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/headlines-feed/bloc/countries_filter_bloc.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import 'package:bloc_concurrency/bloc_concurrency.dart';
55
import 'package:core/core.dart';
66
import 'package:data_repository/data_repository.dart';
77
import 'package:equatable/equatable.dart';
8-
import 'package:flutter_news_app_mobile_client_full_source_code/app/bloc/app_bloc.dart'; // Import AppBloc
8+
import 'package:flutter_news_app_mobile_client_full_source_code/app/bloc/app_bloc.dart';
9+
import 'package:flutter_news_app_mobile_client_full_source_code/headlines-feed/view/country_filter_page.dart'; // Import AppBloc
910

1011
part 'countries_filter_event.dart';
1112
part 'countries_filter_state.dart';
@@ -48,7 +49,7 @@ class CountriesFilterBloc
4849
/// Handles the request to fetch countries based on a specific usage.
4950
///
5051
/// This method fetches a non-paginated list of countries, filtered by
51-
/// the provided [usage] (e.g., 'eventCountry', 'headquarters').
52+
/// the provided [usage] (e.g., 'hasActiveSources', 'hasActiveHeadlines').
5253
Future<void> _onCountriesFilterRequested(
5354
CountriesFilterRequested event,
5455
Emitter<CountriesFilterState> emit,

0 commit comments

Comments
 (0)