NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #615 most downloaded on pub.dev
Back Button Interceptor. May be used to do stuff when the Android back-button is tapped, as an alternative to `WillPopScope`.
Last release 5 days ago
02 Oct 2026
Release timing varies
gaps range from 2 weeks to 1.6 years
Some releases are documented
notes for 13 of 44 stable releases
2 versions withdrawn
withdrawn after publishing
8 years old
47 releases · first in 2019
* Sponsored by MyText.ai ![]
* Sponsored by MyText.ai ![]
One column per quarter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added static methods BackButtonInterceptor.getInnermostNamedNavigatorRoute and BackButtonInterceptor.getInnermostNamedNavigatorRouteName. Those method
BackButtonInterceptor.getInnermostNamedNavigatorRoute
and BackButtonInterceptor.getInnermostNamedNavigatorRouteName. Those methods will
get the current navigator route, if that route has a name. If it doesn't have a name,
it will go back until it finds a route with a name. This can be helpful if you are in
a dialog or bottom sheet, and you want to know the route of the screen it's in.Updated the README to include: "To make it work on Android 13 and up, set this to false in the Android manifest: android:enableOnBackInvokedCallback="
false in the Android manifest: android:enableOnBackInvokedCallback="false"Nothing published for this version
When your interceptor throws an error, you now also get its stacktrace. This is a breaking change only if you define your own errorProcessing function…
errorProcessing function. If that's the
case and your code breaks, simply change the signature of your error processing function
from static Function(Object) to static Function(Object, StackTrace).Nothing published for this version
Nothing published for this version
* Flutter 3.0
Nothing published for this version
* Don't use this version.
Docs improvement. This is the version you should use with Flutter <3.0.
Now the interceptor function can return bool or Future : typedef InterceptorFunction = FutureOr Function(bool stopDefaultButtonEvent, RouteInfo routeI
bool or Future<bool>:typedef InterceptorFunction = FutureOr<bool> Function(bool stopDefaultButtonEvent, RouteInfo routeInfo);* Nullsafety.
Nothing published for this version
Nothing published for this version
Method ifRouteChanged() now works with named and unnamed routes.
Nothing published for this version
Nothing published for this version
Breaking change: The interceptor functions now get a second parameter RouteInfo info. To upgrade from version [4.2.4] you just need to add this parame…
Breaking change: The interceptor functions now get a second parameter RouteInfo info.
To upgrade from version [4.2.4] you just need to add this parameter to your functions
(you have to add it, but you don't need to use it, unless you need the new
functionalities it provides).
Please read the "Notes" section of the README for more information
about the new RouteInfo parameter.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Prevents silent errors swallowing.
Nothing published for this version
Nothing published for this version
* Multiple interceptors.
Tested thoroughly. Single interceptor.
Your coding agent can read these notes before it upgrades. Set up the MCP server →