enablePredictiveBackGesture property

bool get enablePredictiveBackGesture

Whether to enable predictive back gesture on Android

Make sure your app supports Android API 33 or higher, as predictive back won't work on older versions of Android. Then, set the flag android:enableOnBackInvokedCallback="true" in android/app/src/main/AndroidManifest.xml. read more here https://docs.flutter.dev/platform-integration/android/predictive-back

make sure to also opt-in into this feature in your device settings Settings => System => Developer => Predictive back animations

defaults to false

Implementation

bool get enablePredictiveBackGesture;