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

@@ -31,6 +31,7 @@ import 'package:eatvio_app/core/theme/theme_helper.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_svg/svg.dart';
import 'package:go_router/go_router.dart';
import 'package:url_launcher/url_launcher.dart';
class AboutRecipeScreen extends StatefulWidget {
@@ -203,6 +204,15 @@ class _AboutRecipeScreenState extends State<AboutRecipeScreen> {
),
appBar: AppBar(
centerTitle: true,
leading: BackButton(
onPressed: () {
if (context.canPop()) {
GoRouter.of(context).pop();
return;
}
GoRouter.of(context).go('/feed-screen');
},
),
title: Text(
recipeState.recipe.title ?? '',
maxLines: 2,
@@ -388,6 +398,15 @@ class _AboutRecipeScreenState extends State<AboutRecipeScreen> {
return Scaffold(
appBar: AppBar(
centerTitle: true,
leading: BackButton(
onPressed: () {
if (context.canPop()) {
GoRouter.of(context).pop();
return;
}
GoRouter.of(context).go('/feed-screen');
},
),
title: Text(
'',
maxLines: 2,
@@ -403,6 +422,15 @@ class _AboutRecipeScreenState extends State<AboutRecipeScreen> {
return Scaffold(
appBar: AppBar(
centerTitle: true,
leading: BackButton(
onPressed: () {
if (context.canPop()) {
GoRouter.of(context).pop();
return;
}
GoRouter.of(context).go('/feed-screen');
},
),
title: Text(
'',
maxLines: 2,