Skip to content

Commit 83790d8

Browse files
committed
fix(feed_core): use pushNamed for navigation after ad closure
- Replace context.goNamed with context.pushNamed to navigate to article details - This change ensures proper navigation stack management after ad is closed
1 parent 8353d47 commit 83790d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shared/widgets/feed_core/headline_tap_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract final class HeadlineTapHandler {
3131
if (!context.mounted) return;
3232

3333
// Proceed with navigation after the ad is closed.
34-
context.goNamed(
34+
await context.pushNamed(
3535
Routes.articleDetailsName,
3636
pathParameters: {'id': headline.id},
3737
extra: headline,

0 commit comments

Comments
 (0)