From a56a699ef877735a43cd7ee900b65e95deae5488 Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Sun, 28 Jan 2024 16:51:23 -0800 Subject: [PATCH] fix: patch screen pop scope --- 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 b78b836c64..fb6542339f 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), ), ); }