Skip to content

Commit 867d011

Browse files
committed
fix(headlines-search): update source item widget to use correct arguments
- Replace deprecated EntityDetailsPageArguments constructor with entityId and contentType - Ensure compatibility with latest routes package version
1 parent df4b10b commit 867d011

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/headlines-search/widgets/source_item_widget.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ class SourceItemWidget extends StatelessWidget {
2424
onTap: () {
2525
context.push(
2626
Routes.sourceDetails,
27-
extra: EntityDetailsPageArguments(entity: source),
27+
extra: EntityDetailsPageArguments(
28+
entityId: source.id,
29+
contentType: ContentType.source,
30+
),
2831
);
2932
},
3033
);

0 commit comments

Comments
 (0)