Skip to content

Commit b2efac5

Browse files
committed
refactor(edit-source): remove load more option from language and country dropdown
- Remove DropdownMenuItem for loading more languages and countries - This change simplifies the dropdown menu structure for both languages and countries
1 parent 528d9d2 commit b2efac5

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lib/content_management/view/edit_source_page.dart

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,6 @@ class _EditSourceViewState extends State<_EditSourceView> {
205205
child: Text(language.name),
206206
),
207207
),
208-
if (state.languagesHasMore)
209-
DropdownMenuItem(
210-
value: null,
211-
child: const Center(
212-
child: Text('Load More'),
213-
),
214-
onTap: () => context.read<EditSourceBloc>().add(
215-
const EditSourceLoadMoreLanguagesRequested(),
216-
),
217-
),
218208
],
219209
onChanged: (value) => context
220210
.read<EditSourceBloc>()
@@ -271,16 +261,6 @@ class _EditSourceViewState extends State<_EditSourceView> {
271261
),
272262
),
273263
),
274-
if (state.countriesHasMore)
275-
DropdownMenuItem(
276-
value: null,
277-
child: const Center(
278-
child: Text('Load More'),
279-
),
280-
onTap: () => context.read<EditSourceBloc>().add(
281-
const EditSourceLoadMoreCountriesRequested(),
282-
),
283-
),
284264
],
285265
onChanged: (value) => context
286266
.read<EditSourceBloc>()

0 commit comments

Comments
 (0)