File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,21 @@ GoRouter createRouter({
400
400
context
401
401
.read <HtDataRepository <Country >>(),
402
402
),
403
- child: const SourceFilterPage (),
403
+ // Pass initialSelectedSources, country ISO codes, and source types from state.extra
404
+ child: Builder (
405
+ builder: (context) {
406
+ final extraData = state.extra as Map <String , dynamic >? ?? const {};
407
+ final initialSources = extraData[keySelectedSources] as List <Source >? ?? const [];
408
+ final initialCountryIsoCodes = extraData[keySelectedCountryIsoCodes] as Set <String >? ?? const {};
409
+ final initialSourceTypes = extraData[keySelectedSourceTypes] as Set <SourceType >? ?? const {};
410
+
411
+ return SourceFilterPage (
412
+ initialSelectedSources: initialSources,
413
+ initialSelectedCountryIsoCodes: initialCountryIsoCodes,
414
+ initialSelectedSourceTypes: initialSourceTypes,
415
+ );
416
+ },
417
+ ),
404
418
),
405
419
),
406
420
// Sub-route for country selection REMOVED
You can’t perform that action at this time.
0 commit comments