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,