Skip to content

Commit 933ca43

Browse files
committed
fix(shared): pass entity ID instead of entity object in metadata row navigation
- Update navigation logic in _HeadlineMetadataRow widget - Replace 'entity' parameter with 'entityId' for both topic and source details pages - Improve type safety and flexibility in headline tile navigation
1 parent 780a556 commit 933ca43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/shared/widgets/feed_core/headline_tile_image_start.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class _HeadlineMetadataRow extends StatelessWidget {
179179
context.push(
180180
Routes.topicDetails,
181181
extra: EntityDetailsPageArguments(
182-
entity: headline.topic,
182+
entityId: headline.topic.id,
183183
contentType: ContentType.topic,
184184
),
185185
);
@@ -203,7 +203,7 @@ class _HeadlineMetadataRow extends StatelessWidget {
203203
context.push(
204204
Routes.sourceDetails,
205205
extra: EntityDetailsPageArguments(
206-
entity: headline.source,
206+
entityId: headline.source.id,
207207
contentType: ContentType.source,
208208
),
209209
);

0 commit comments

Comments
 (0)