From 4b74c1a8a6782cd067a512ceca66aac8e7f6654e Mon Sep 17 00:00:00 2001 From: Justin McCandless Date: Thu, 1 Aug 2024 14:33:16 -0700 Subject: [PATCH] Explain that predictive back doesn't work with WillPopScope (#152116) Clearly explains that WillPopScope will break predictive back support. Came up in https://github.com/flutter/flutter/pull/152057#pullrequestreview-2191560087. --- packages/flutter/lib/src/widgets/will_pop_scope.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/widgets/will_pop_scope.dart b/packages/flutter/lib/src/widgets/will_pop_scope.dart index 99b579081de..d2747c4a830 100644 --- a/packages/flutter/lib/src/widgets/will_pop_scope.dart +++ b/packages/flutter/lib/src/widgets/will_pop_scope.dart @@ -19,14 +19,14 @@ import 'routes.dart'; /// * [Form], which provides an `onWillPop` callback that enables the form /// to veto a `pop` initiated by the app's back button. @Deprecated( - 'Use PopScope instead. ' + 'Use PopScope instead. The Android predictive back feature will not work with WillPopScope. ' 'This feature was deprecated after v3.12.0-1.0.pre.', ) class WillPopScope extends StatefulWidget { /// Creates a widget that registers a callback to veto attempts by the user to /// dismiss the enclosing [ModalRoute]. @Deprecated( - 'Use PopScope instead. ' + 'Use PopScope instead. The Android predictive back feature will not work with WillPopScope. ' 'This feature was deprecated after v3.12.0-1.0.pre.', ) const WillPopScope({