Skip to content

Commit 73933fa

Browse files
committed
refactor(router): remove source countries filter route
- Remove GoRoute for feedFilterSourceCountries from router configuration - Remove related constants from Routes class
1 parent 3860282 commit 73933fa

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

lib/router/router.dart

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -539,31 +539,6 @@ GoRouter createRouter({
539539
);
540540
},
541541
),
542-
GoRoute(
543-
path: Routes.feedFilterSourceCountries,
544-
name: Routes.feedFilterSourceCountriesName,
545-
pageBuilder: (context, state) {
546-
final l10n = context.l10n;
547-
548-
final initialSelection =
549-
state.extra as List<Country>?;
550-
return MaterialPage(
551-
fullscreenDialog: true,
552-
child: BlocProvider(
553-
create: (context) => CountriesFilterBloc(
554-
countriesRepository: context
555-
.read<DataRepository<Country>>(),
556-
),
557-
child: CountryFilterPage(
558-
title:
559-
l10n.headlinesFeedFilterSourceCountryLabel,
560-
usage: 'headquarters',
561-
key: ValueKey(initialSelection.hashCode),
562-
),
563-
),
564-
);
565-
},
566-
),
567542
],
568543
),
569544
],

lib/router/routes.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ abstract final class Routes {
1919
// New routes for country filtering
2020
static const feedFilterEventCountries = 'event-countries';
2121
static const feedFilterEventCountriesName = 'feedFilterEventCountries';
22-
23-
static const feedFilterSourceCountries = 'source-countries';
24-
static const feedFilterSourceCountriesName = 'feedFilterSourceCountries';
25-
22+
2623
static const search = '/search';
2724
static const searchName = 'search';
2825
static const account = '/account';

0 commit comments

Comments
 (0)