Commit 0b3a1c9
committed
feat(content): update create headline page to use reactive dropdown
Refactored the `create_headline_page.dart` to use the new BLoC-aware `SearchableDropdownFormField` for country selection.
- Replaced the old dropdown implementation with the new generic `SearchableDropdownFormField<Country, CreateHeadlineBloc, CreateHeadlineState>`.
- Injected the `CreateHeadlineBloc` 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 36ba973 commit 0b3a1c9
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
| 218 | + | |
218 | 219 | | |
219 | | - | |
| 220 | + | |
220 | 221 | | |
221 | | - | |
222 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
0 commit comments