Commit 7cefb3c
committed
feat(content): update edit headline page to use reactive dropdown
Refactored the `edit_headline_page.dart` to use the new BLoC-aware `SearchableDropdownFormField` for country selection.
- Replaced the old dropdown implementation with the new generic `SearchableDropdownFormField<Country, EditHeadlineBloc, EditHeadlineState>`.
- Injected the `EditHeadlineBloc` instance into the widget.
- Provided extractor functions (`itemsExtractor`, `hasMoreExtractor`, `isLoadingExtractor`) to enable the dropdown to reactively pull data from the BLoC's state.
This change ensures that the country list in the search dialog updates automatically when more items are loaded via pagination, fixing the core UI refresh bug.1 parent 0b3a1c9 commit 7cefb3c
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
| 286 | + | |
286 | 287 | | |
287 | | - | |
| 288 | + | |
288 | 289 | | |
289 | | - | |
290 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
291 | 294 | | |
292 | 295 | | |
293 | 296 | | |
| |||
0 commit comments