From eb6d3cd64e87691b3bd282ab1d613e0b30cb63d0 Mon Sep 17 00:00:00 2001 From: Benjamin <73490201+BenjaminHalko@users.noreply.github.com> Date: Fri, 2 Feb 2024 19:29:34 -0800 Subject: [PATCH] fix(PopScope): User able to exit patch screen when the installer is still running (#1663) --- lib/ui/views/installer/installer_view.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ui/views/installer/installer_view.dart b/lib/ui/views/installer/installer_view.dart index b78b836c..fb654233 100644 --- a/lib/ui/views/installer/installer_view.dart +++ b/lib/ui/views/installer/installer_view.dart @@ -17,6 +17,8 @@ class InstallerView extends StatelessWidget { onViewModelReady: (model) => model.initialize(context), viewModelBuilder: () => InstallerViewModel(), builder: (context, model, child) => PopScope( + onPopInvoked: (bool didPop) => model.onWillPop(context), + canPop: false, child: SafeArea( top: false, bottom: model.isPatching, @@ -112,7 +114,6 @@ class InstallerView extends StatelessWidget { ), ), ), - onPopInvoked: (bool didPop) => model.onWillPop(context), ), ); }