From 6ed7e2fa3dc9db5bb0033e0c99910eb74ffc33c9 Mon Sep 17 00:00:00 2001 From: "Aamir.Muhammad" <> Date: Wed, 17 Jul 2024 11:28:56 +0300 Subject: [PATCH] dashbord skip --- lib/views/dashboard/dashboard_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/dashboard/dashboard_page.dart b/lib/views/dashboard/dashboard_page.dart index bd6d009..4c227cc 100644 --- a/lib/views/dashboard/dashboard_page.dart +++ b/lib/views/dashboard/dashboard_page.dart @@ -129,8 +129,8 @@ class _DashboardPageState extends State { Widget build(BuildContext context) { DashboardVmCustomer dashboardVM = context.read(); bool isHomePage = dashboardVM.selectedNavbarBarIndex == 2; - return WillPopScope( - onWillPop: () async => Future.value(false), + return PopScope( + canPop: false, child: Scaffold( appBar: CustomAppBar( backgroundColor: null,