Skip to content

Commit 887a750

Browse files
committed
refactor(content_management): add documentation for background data fetching
- Add comments explaining the background data fetching mechanism for countries and languages - Clarify the purpose of this mechanism in relation to UI consistency and DropdownButtonFormField limitations
1 parent a9279ce commit 887a750

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/content_management/bloc/content_management_bloc.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ class ContentManagementBloc
5151
final DataRepository<Country> _countriesRepository;
5252
final DataRepository<Language> _languagesRepository;
5353

54+
// --- Background Data Fetching for countries/languages for the ui Dropdown ---
55+
//
56+
// The DropdownButtonFormField widget does not natively support on-scroll
57+
// pagination. To preserve UI consistency across the application, this BLoC
58+
// employs an event-driven background fetching mechanism.
5459
Future<void> _onSharedDataRequested(
5560
SharedDataRequested event,
5661
Emitter<ContentManagementState> emit,

0 commit comments

Comments
 (0)