Skip to content

Commit c54860f

Browse files
committed
fix(headlines): pass headline object to route
- Pass full headline object - To target route
1 parent c32f345 commit c54860f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/headlines-feed/widgets/headline_item_widget.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class HeadlineItemWidget extends StatelessWidget {
5050
context.goNamed(
5151
targetRouteName, // Use the new parameter here
5252
pathParameters: {'id': headline.id},
53+
extra: headline, // Pass the full headline object
5354
);
5455
},
5556
child: Padding(

0 commit comments

Comments
 (0)