PackageTrack
Sign in Get early access

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 2025
2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 46
  1. 8.0.4 10 Feb 2025
    Release notes

    Open source →
  2. 8.0.3 02 Jan 2025

    Nothing published for this version

  3. 8.0.2 01 Jan 2025

    Nothing published for this version

  4. 8.0.1 01 Jan 2025

    Nothing published for this version

  5. 8.0.0 29 Oct 2024

    Nothing published for this version

  6. 7.1.0 04 Sep 2024 withdrawn
    Release notes
    • Added static methods 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.
    Open source →
  7. 7.0.3 27 Mar 2024
    Release notes
    • 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"
    Open source →
  8. 7.0.2 07 Feb 2024

    Nothing published for this version

  9. 7.0.1 24 Jan 2024
    Release notes
    • 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. 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).
    Open source →
  10. 7.0.0 10 Aug 2023

    Nothing published for this version

  11. 6.0.2 16 Oct 2022

    Nothing published for this version

  12. 6.0.1 04 Jul 2022
    Release notes
    • Flutter 3.0
    Open source →
  13. 6.0.0 13 May 2022

    Nothing published for this version

  14. 5.1.0 13 May 2022 withdrawn
    Release notes
    • Don't use this version.
    Open source →
  15. 5.0.2 20 Sep 2021
    Release notes
    • Docs improvement. This is the version you should use with Flutter <3.0.
    Open source →
  16. 5.0.1 17 Jun 2021
    Release notes
    • Now the interceptor function can return bool or Future<bool>:
      typedef InterceptorFunction = FutureOr<bool> Function(bool stopDefaultButtonEvent, RouteInfo routeInfo);
    Open source →
  17. 5.0.0 05 Mar 2021
    Release notes
    • Nullsafety.
    Open source →
  18. 5.0.0-nullsafety.1 15 Feb 2021 pre-release

    Nothing published for this version

  19. 4.4.2 15 Feb 2021

    Nothing published for this version

  20. 4.4.1 21 Jan 2021
    Release notes
    • Method ifRouteChanged() now works with named and unnamed routes.
    Open source →
  21. 4.4.0 22 Oct 2020

    Nothing published for this version

  22. 4.3.1 14 Sep 2020

    Nothing published for this version

  23. 4.3.0 31 Jul 2020
    Release notes
    • 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.

    Open source →
  24. 4.2.4 19 May 2020

    Nothing published for this version

  25. 4.2.3 18 Dec 2019

    Nothing published for this version

  26. 4.2.2 24 Nov 2019

    Nothing published for this version

  27. 4.2.1 01 Nov 2019

    Nothing published for this version

  28. 4.2.0 28 Oct 2019

    Nothing published for this version

  29. 4.1.2 28 Oct 2019

    Nothing published for this version

  30. 4.1.1 26 Aug 2019

    Nothing published for this version

  31. 4.1.0 26 Aug 2019

    Nothing published for this version

  32. 4.0.9 24 Aug 2019

    Nothing published for this version

  33. 4.0.8 24 Aug 2019

    Nothing published for this version

  34. 4.0.7 13 Aug 2019

    Nothing published for this version

  35. 4.0.6 23 Apr 2019

    Nothing published for this version

  36. 4.0.5 22 Apr 2019

    Nothing published for this version

  37. 4.0.4 17 Apr 2019

    Nothing published for this version

  38. 4.0.3 17 Apr 2019

    Nothing published for this version

  39. 4.0.2 02 Apr 2019

    Nothing published for this version

  40. 4.0.1 10 Mar 2019

    Nothing published for this version

  41. 4.0.0 09 Mar 2019

    Nothing published for this version

  42. 3.0.0 03 Mar 2019
    Release notes
    • Prevents silent errors swallowing.
    Open source →
  43. 2.0.2 22 Feb 2019

    Nothing published for this version

  44. 2.0.1 22 Feb 2019

    Nothing published for this version

  45. 2.0.0 03 Jan 2019
    Release notes
    • Multiple interceptors.
    Open source →
  46. 1.0.0 02 Jan 2019
    Release notes
    • Tested thoroughly. Single interceptor.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive