Skip to content

Commit

Permalink
fix(PopScope): User able to exit patch screen when the installer is s…
Browse files Browse the repository at this point in the history
…till running (#1663)
  • Loading branch information
BenjaminHalko authored Feb 3, 2024
1 parent 8cda2c1 commit eb6d3cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ui/views/installer/installer_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -112,7 +114,6 @@ class InstallerView extends StatelessWidget {
),
),
),
onPopInvoked: (bool didPop) => model.onWillPop(context),
),
);
}
Expand Down

0 comments on commit eb6d3cd

Please sign in to comment.