mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 20:18:54 +03:30
Fix back button
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user