fix(PopScope): User able to exit patch screen when the installer is still running (#1663)

This commit is contained in:
Benjamin 2024-02-02 19:29:34 -08:00 committed by GitHub
parent 8cda2c164d
commit eb6d3cd64e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),
),
);
}