mirror of
https://github.com/ente-io/ente.git
synced 2025-08-13 09:47:17 +00:00
[mob][photos] Migrate use of WillPopScope to PopScope (#1473)
## Description [Documentation followed for the migration](https://docs.flutter.dev/release/breaking-changes/android-predictive-back) ## Tests - [x] Tested screens in which migration wasn't straight forward (HomeScreen)
This commit is contained in:
@@ -27,8 +27,8 @@ class LinearProgressDialogState extends State<LinearProgressDialog> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return WillPopScope(
|
||||
onWillPop: () async => false,
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: AlertDialog(
|
||||
title: Text(
|
||||
widget.message,
|
||||
|
Reference in New Issue
Block a user