mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 08:38:55 +03:30
Fix back button
This commit is contained in:
@@ -56,7 +56,7 @@ class _ItemDetailScreenState extends State<ItemDetailScreen> {
|
|||||||
canPop: false,
|
canPop: false,
|
||||||
onPopInvoked: (didPop) {
|
onPopInvoked: (didPop) {
|
||||||
if (didPop) return;
|
if (didPop) return;
|
||||||
Navigator.of(context).pushNamed(Routes.homePage);
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class _PackageDetailScreenState extends State<PackageDetailScreen> {
|
|||||||
canPop: false,
|
canPop: false,
|
||||||
onPopInvoked: (didPop) {
|
onPopInvoked: (didPop) {
|
||||||
if (didPop) return;
|
if (didPop) return;
|
||||||
Navigator.of(context).pushNamed(Routes.homePage);
|
Navigator.of(context).pop();
|
||||||
},
|
},
|
||||||
child: SafeArea(
|
child: SafeArea(
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
|
|||||||
Reference in New Issue
Block a user