Skip to content

Commit df4b10b

Browse files
committed
fix(headlines-search): update country item widget navigation
- Replace deprecated EntityDetailsPageArguments with entityId and contentType - Ensure proper navigation to country details page
1 parent a63e958 commit df4b10b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/headlines-search/widgets/country_item_widget.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ class CountryItemWidget extends StatelessWidget {
2323
onTap: () {
2424
context.push(
2525
Routes.countryDetails,
26-
extra: EntityDetailsPageArguments(entity: country),
26+
extra: EntityDetailsPageArguments(
27+
entityId: country.id,
28+
contentType: ContentType.country,
29+
),
2730
);
2831
},
2932
);

0 commit comments

Comments
 (0)