[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:
Ashil
2024-04-19 09:16:42 +05:30
committed by GitHub
parent d430616ccb
commit dac0ddf41c
8 changed files with 40 additions and 35 deletions

View File

@@ -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,