@@ -10,7 +10,7 @@ import 'package:ht_main/l10n/l10n.dart';
10
10
import 'package:ht_main/router/routes.dart' ;
11
11
import 'package:ht_main/shared/constants/constants.dart' ;
12
12
import 'package:ht_shared/ht_shared.dart'
13
- show Category, Country, Source; // Import models from ht_shared
13
+ show Category, Source; // Import models from ht_shared, Country removed
14
14
15
15
/// {@template headlines_filter_page}
16
16
/// A full-screen dialog page for selecting headline filters.
@@ -35,7 +35,7 @@ class _HeadlinesFilterPageState extends State<HeadlinesFilterPage> {
35
35
/// and are only applied back to the BLoC when the user taps 'Apply'.
36
36
late List <Category > _tempSelectedCategories;
37
37
late List <Source > _tempSelectedSources;
38
- late List <Country > _tempSelectedCountries;
38
+ // late List<Country> _tempSelectedCountries; // Removed
39
39
40
40
@override
41
41
void initState () {
@@ -48,15 +48,15 @@ class _HeadlinesFilterPageState extends State<HeadlinesFilterPage> {
48
48
// Create copies of the lists to avoid modifying the BLoC state directly.
49
49
_tempSelectedCategories = List .from (currentState.filter.categories ?? []);
50
50
_tempSelectedSources = List .from (currentState.filter.sources ?? []);
51
- _tempSelectedCountries = List .from (
52
- currentState.filter.eventCountries ?? [],
53
- );
51
+ // _tempSelectedCountries = List.from(
52
+ // currentState.filter.eventCountries ?? [],
53
+ // ); // Removed
54
54
} else {
55
55
// Default to empty lists if the feed isn't loaded yet. This might happen
56
56
// if the filter page is accessed before the initial feed load completes.
57
57
_tempSelectedCategories = [];
58
58
_tempSelectedSources = [];
59
- _tempSelectedCountries = [];
59
+ // _tempSelectedCountries = []; // Removed
60
60
}
61
61
}
62
62
@@ -155,10 +155,6 @@ class _HeadlinesFilterPageState extends State<HeadlinesFilterPage> {
155
155
_tempSelectedSources.isNotEmpty
156
156
? _tempSelectedSources
157
157
: null , // Use null if empty
158
- eventCountries:
159
- _tempSelectedCountries.isNotEmpty
160
- ? _tempSelectedCountries
161
- : null , // Use null if empty
162
158
);
163
159
164
160
// Add an event to the main HeadlinesFeedBloc to apply the
@@ -198,18 +194,7 @@ class _HeadlinesFilterPageState extends State<HeadlinesFilterPage> {
198
194
}
199
195
},
200
196
),
201
- _buildFilterTile (
202
- context: context,
203
- title: l10n.headlinesFeedFilterEventCountryLabel,
204
- selectedCount: _tempSelectedCountries.length,
205
- routeName: Routes .feedFilterCountriesName,
206
- currentSelection: _tempSelectedCountries,
207
- onResult: (result) {
208
- if (result is List <Country >) {
209
- setState (() => _tempSelectedCountries = result);
210
- }
211
- },
212
- ),
197
+ // _buildFilterTile for eventCountries removed
213
198
],
214
199
),
215
200
);
0 commit comments