Commit 332cce0
committed
refactor: update edit source page to use reactive dropdowns
Refactored the `edit_source_page.dart` to use the new BLoC-aware `SearchableDropdownFormField` for both language and country selection.
- Replaced the old dropdown implementations with the new generic `SearchableDropdownFormField`.
- Injected the `EditSourceBloc` instance into each widget.
- Provided extractor functions (`itemsExtractor`, `hasMoreExtractor`, `isLoadingExtractor`) to enable the dropdowns to reactively pull the correct data (languages or countries) from the BLoC's state.
This change ensures that both the language and country lists in their respective search dialogs update automatically when more items are loaded via pagination, completing the bug fix.1 parent d429c4a commit 332cce0
1 file changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
| 195 | + | |
195 | 196 | | |
196 | | - | |
| 197 | + | |
197 | 198 | | |
198 | | - | |
199 | | - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| |||
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
239 | | - | |
| 242 | + | |
| 243 | + | |
240 | 244 | | |
241 | | - | |
| 245 | + | |
242 | 246 | | |
243 | | - | |
244 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
245 | 251 | | |
246 | 252 | | |
247 | 253 | | |
| |||
0 commit comments