mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-13 13:07:38 +02:00
refactor: Replace deprecated WillPopScope
(#1604)
This commit is contained in:
@ -15,7 +15,7 @@ class InstallerView extends StatelessWidget {
|
||||
return ViewModelBuilder<InstallerViewModel>.reactive(
|
||||
onViewModelReady: (model) => model.initialize(context),
|
||||
viewModelBuilder: () => InstallerViewModel(),
|
||||
builder: (context, model, child) => WillPopScope(
|
||||
builder: (context, model, child) => PopScope(
|
||||
child: SafeArea(
|
||||
top: false,
|
||||
bottom: model.isPatching,
|
||||
@ -111,7 +111,7 @@ class InstallerView extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
onWillPop: () => model.onWillPop(context),
|
||||
onPopInvoked: (bool didPop) => model.onWillPop(context),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user