Results for “PopScope”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
Guides
API reference
Version changes
- Generic types in PopScope3.24.0breaking
Added a generic type to the `PopScope` class and replaced the `onPopInvoked` with a new method `onPopInvokedWithResult`. The new method takes a boolean `didPop` and a `result
- Deprecated just-in-time navigation pop APIs for Android Predictive Back3.16.0deprecated
just-in-time navigation APIs, like `WillPopScope` and `Navigator.willPop`. ### Migrating from `WillPopScope` to `PopScope` The direct replacement of the `WillPopScope` widget is the `PopScope` widget
- Navigator's page APIs breaking change3.24.0breaking
work well with other popping mechanisms in the framework, such as `PopScope` and iOS back gestures. Code before migration: ```dart import 'package:material_ui/material_ui.dart'; final MaterialPage page1
- The default page transition on Android is now PredictiveBackPageTransitionBuilder3.38.0breaking
possibly cancel the navigation. Flutter added support for this with the `PopScope` widget followed by `PredictiveBackPageTransitionsBuilder`. If you want to keep your app's page transition