Fix back button

This commit is contained in:
hanie.khodkari
2025-03-16 20:39:34 +03:30
parent 82a5a5c9bc
commit 05f36c8a6a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class _ItemDetailScreenState extends State<ItemDetailScreen> {
canPop: false,
onPopInvoked: (didPop) {
if (didPop) return;
Navigator.of(context).pushNamed(Routes.homePage);
Navigator.of(context).pop();
},
child: SafeArea(
child: Scaffold(
@@ -51,7 +51,7 @@ class _PackageDetailScreenState extends State<PackageDetailScreen> {
canPop: false,
onPopInvoked: (didPop) {
if (didPop) return;
Navigator.of(context).pushNamed(Routes.homePage);
Navigator.of(context).pop();
},
child: SafeArea(
child: Scaffold(