mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 20:57:36 +02:00
revert: WillPopScope migration
This reverts commit ef9b1d5c2d
.
Why is this so hard to implement??? Are we missing something??
This commit is contained in:
@ -16,9 +16,12 @@ class InstallerView extends StatelessWidget {
|
||||
return ViewModelBuilder<InstallerViewModel>.reactive(
|
||||
onViewModelReady: (model) => model.initialize(context),
|
||||
viewModelBuilder: () => InstallerViewModel(),
|
||||
builder: (context, model, child) => PopScope(
|
||||
onPopInvoked: (bool didPop) => model.onWillPop(context),
|
||||
canPop: false,
|
||||
builder: (context, model, child) => WillPopScope(
|
||||
/*
|
||||
TODO(any): migrate to [PopScope],
|
||||
we've tried to migrate it two times but
|
||||
reverted it because we couldn't exit out of the screen.
|
||||
*/
|
||||
child: SafeArea(
|
||||
top: false,
|
||||
bottom: model.isPatching,
|
||||
@ -108,6 +111,7 @@ class InstallerView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
onWillPop: () => model.onWillPop(context),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user