back_button_interceptor
Back Button Interceptor. May be used to do stuff when the Android back-button is tapped, as an alternative to `WillPopScope`.
8.0.4
407K downloads/mo
#581 most downloaded on pub.dev
marcglasberg/back_button_interceptor
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 10 months
Some releases are documented
notes for 12 of 43 stable releases
2 versions withdrawn
withdrawn after publishing
8 years old
46 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
46 releases · Jan 2019 to Feb 2025Releases
latest 46-
8.0.410 Feb 2025 -
8.0.302 Jan 2025Nothing published for this version
-
8.0.201 Jan 2025Nothing published for this version
-
8.0.101 Jan 2025Nothing published for this version
-
8.0.029 Oct 2024Nothing published for this version
-
7.1.004 Sep 2024 withdrawnRelease notes
Open source →- Added static methods
BackButtonInterceptor.getInnermostNamedNavigatorRouteandBackButtonInterceptor.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.
- Added static methods
-
7.0.327 Mar 2024Release notes
Open source →- Updated the README to include: "To make it work on Android 13 and up, set this to
falsein the Android manifest:android:enableOnBackInvokedCallback="false"
- Updated the README to include: "To make it work on Android 13 and up, set this to
-
7.0.207 Feb 2024Nothing published for this version
-
7.0.124 Jan 2024Release notes
Open source →- When your interceptor throws an error, you now also get its stacktrace. This is a
breaking change only if you define your own
errorProcessingfunction. If that's the case and your code breaks, simply change the signature of your error processing function fromstatic Function(Object)tostatic Function(Object, StackTrace).
- When your interceptor throws an error, you now also get its stacktrace. This is a
breaking change only if you define your own
-
7.0.010 Aug 2023Nothing published for this version
-
6.0.216 Oct 2022Nothing published for this version
-
6.0.104 Jul 2022 -
6.0.013 May 2022Nothing published for this version
-
5.1.013 May 2022 withdrawn -
5.0.220 Sep 2021 -
5.0.117 Jun 2021Release notes
Open source →- Now the interceptor function can return
boolorFuture<bool>:
typedef InterceptorFunction = FutureOr<bool> Function(bool stopDefaultButtonEvent, RouteInfo routeInfo);
- Now the interceptor function can return
-
5.0.005 Mar 2021 -
5.0.0-nullsafety.115 Feb 2021 pre-releaseNothing published for this version
-
4.4.215 Feb 2021Nothing published for this version
-
4.4.121 Jan 2021 -
4.4.022 Oct 2020Nothing published for this version
-
4.3.114 Sep 2020Nothing published for this version
-
4.3.031 Jul 2020Release notes
Open source →-
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
RouteInfoparameter.
-
-
4.2.419 May 2020Nothing published for this version
-
4.2.318 Dec 2019Nothing published for this version
-
4.2.224 Nov 2019Nothing published for this version
-
4.2.101 Nov 2019Nothing published for this version
-
4.2.028 Oct 2019Nothing published for this version
-
4.1.228 Oct 2019Nothing published for this version
-
4.1.126 Aug 2019Nothing published for this version
-
4.1.026 Aug 2019Nothing published for this version
-
4.0.924 Aug 2019Nothing published for this version
-
4.0.824 Aug 2019Nothing published for this version
-
4.0.713 Aug 2019Nothing published for this version
-
4.0.623 Apr 2019Nothing published for this version
-
4.0.522 Apr 2019Nothing published for this version
-
4.0.417 Apr 2019Nothing published for this version
-
4.0.317 Apr 2019Nothing published for this version
-
4.0.202 Apr 2019Nothing published for this version
-
4.0.110 Mar 2019Nothing published for this version
-
4.0.009 Mar 2019Nothing published for this version
-
3.0.003 Mar 2019 -
2.0.222 Feb 2019Nothing published for this version
-
2.0.122 Feb 2019Nothing published for this version
-
2.0.003 Jan 2019 -
1.0.002 Jan 2019