feat(deeplinks): added backwards novigation for contant that was oppened via deeplinks, added routing to plans

This commit is contained in:
Username1548
2025-06-24 03:18:03 +07:00
parent 105c7cb462
commit aa78d385a2
6 changed files with 511 additions and 433 deletions

View File

@@ -44,7 +44,7 @@ class _PlanWidgetState extends State<PlanWidget> {
onTap: () => GoRouter.of(context).pushNamed(
'aboutPlanScreen',
extra: {
'plan': widget.plan,
'slug': widget.plan.slug,
'index': widget.index,
'navigateToComments': false,
},
@@ -248,8 +248,10 @@ class _PlanWidgetState extends State<PlanWidget> {
FeedIconButton(
icon: Icons.chat_bubble_outline,
text: widget.plan.totalComments.toString(),
onTap: () =>
GoRouter.of(context).pushNamed('aboutPlanScreen', extra: {'plan': widget.plan, 'index': widget.index, 'navigateToComments': true}),
onTap: () {
return GoRouter.of(context)
.pushNamed('aboutPlanScreen', extra: {'slug': widget.plan.slug, 'index': widget.index, 'navigateToComments': true});
},
),
const SizedBox(
width: 12,