Skip to content

Commit

Permalink
fix: patch screen pop scope
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Feb 1, 2024
1 parent 088a3b7 commit a56a699
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 a56a699

Please sign in to comment.