PackageTrack
Sign in Get early access

lifecycle

A flutter package that let you easily add hooks for widget lifecycle.

0.10.0 4.1K downloads/mo #4122 most downloaded on pub.dev chenenyu/lifecycle

What this package is like to depend on

Last release today

24 Aug 2026

Release timing varies

gaps range from 2 weeks to 1.4 years

Nearly every release is documented

notes for 25 of 26 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

27 releases · first in 2020

1 release in the last 12 months

see the full history below

Release timeline

27 releases · Sep 2020 to Aug 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 27
  1. 1.0.0-alpha1 24 Aug 2026 pre-release
    Release notes

    Complete, API-incompatible redesign of the package.

    Breaking changes

    • Replace the 0.x observer and wrapper APIs with a composable lifecycle tree built around LifecycleController, LifecycleScope, normalized LifecycleConstraint, and immutable LifecycleSnapshot values.
    • Use deterministic LifecycleEvent and LifecycleTransition notifications through the standard ChangeNotifier API.
    • Defer viewport activation until scrolling settles by default; use ViewportLifecycleActivationPolicy.immediate for immediate activation.
    • Require Flutter 3.32 or newer.

    Added

    • Support App, Navigator 1.0/2.0, PageView, TabBarView, and scrollable viewport lifecycle composition.
    • Add LifecycleApp, LifecycleBoundary, LifecycleListener, LifecycleBuilder, and LifecycleStateMixin.
    • Add stable page identity, nested Navigator support, batched viewport measurement, an interactive example, and comprehensive test suites.
    Open source →
  2. 0.10.0 28 Mar 2025
    Release notes
    • Fix issue #27: Custom initialPage in PageController(also initialIndex in TabController)
      will not trigger visible and active.
    • Migrate to new flutter's gradle plugins.
    Open source →
    Release notes
    • Fix issue #27: Custom initialPage in PageController(also initialIndex in TabController) will not trigger visible and active.
    • Migrate to new flutter's gradle plugins.
    Open source →
  3. 0.9.0 04 Sep 2024
    Release notes
    • Fix #26
    • Bump flutter version to 3.13.0
    Open source →
    Release notes
    • Fix issue #26: both onVisible and onInvisible were not called on web platform.
    • Bump flutter version to 3.13.0.
    Open source →
  4. 0.8.0 23 Aug 2023
    Release notes
    • Fix: use addPostFrameCallback to avoid unnecessary frame callback.
    • The param wantKeepAlive in ChildPageLifecycleWrapper is not required now.
    • Export some mixins.
    Open source →
    Release notes
    • Fix: use addPostFrameCallback to avoid unnecessary frame callback.
    • The param wantKeepAlive in ChildPageLifecycleWrapper is not required now.
    • Export some mixins.
    Open source →
  5. 0.7.0 23 Apr 2023
    Release notes

    Added: iterateRoutes(bool Function(Route route) callback) and removeRoute<T>(Route route, [T? result]).

    Deprecated: findRoute(String routeName) and removeNamed<T>(String routeName, [T? result]).

    Open source →
    Release notes
    • Added: iterateRoutes(), removeRoute().
    • Deprecated: findRoute(), removeNamed().
    Open source →
  6. 0.6.0 01 Jul 2022
    Release notes

    Fix issue #23 . Nested Navigator error.

    Open source →
    Release notes
    • Fix issue #23.
    Open source →
  7. 0.5.0 16 May 2022
    Release notes
    • Flutter 3.
    Open source →
  8. 0.4.4 20 Apr 2022
    Release notes

    Fix issue #20 . Fix error Concurrent modification during iteration.

    Open source →
    Release notes
    • issue #20. Fix error Concurrent modification during iteration.
    Open source →
  9. 0.4.3 17 Feb 2022
    Release notes

    issue #19

    Open source →
    Release notes
    • issue #19.
    Open source →
  10. 0.4.2 03 Dec 2021
    Release notes

    issue #16

    Open source →
    Release notes
    • issue #16.
    Open source →
  11. 0.4.1 04 Nov 2021
    Release notes
    • Fix a null cast error.
    Open source →
  12. 0.4.0 22 Oct 2021
    Release notes
    • ScrollView item lifecycle support.
    • Rename ParentPageLifecycleWrapper to PageViewLifecycleWrapper and remove required param controller.
    Open source →
  13. 0.3.4 09 Oct 2021
    Release notes
    • Ensure that inactiveand invisible occurs when single pop triggered.
    Open source →
  14. 0.3.3 29 Sep 2021
    Release notes
    • Fix issue #9.
    Open source →
  15. 0.3.2 23 Sep 2021
    Release notes
    • NEW API: findRoute(String routeName).
    • Add flutter_lints.
    Open source →
  16. 0.3.1 01 Sep 2021
    Release notes
    • Bug fixes.
    • Opt: events callback immediately when tab bar changed.
    Open source →
  17. 0.3.0 31 Aug 2021
    Release notes

    Breaking changes:

    • More reasonable lifecycle events just like Android platform.
    Open source →
  18. 0.2.0 12 Apr 2021
    Release notes
    • Null safety.
    Open source →
  19. 0.1.1 29 Dec 2020

    Nothing published for this version

  20. 0.1.1+1 30 Dec 2020
    Release notes
    • Fix a NPE caused by debug log.
    Open source →
  21. 0.1.0 21 Dec 2020
    Release notes
    • Emit push after initState and pop before dispose.
    • Optimize events delivery in nested page view.
    Open source →
  22. 0.0.6 28 Oct 2020
    Release notes
    • Bug fix.
    Open source →
  23. 0.0.5 15 Oct 2020
    Release notes
    • Support usage of Navigator widget.
    Open source →
  24. 0.0.4 27 Sep 2020
    Release notes
    • Remove the active event which sent manually after page view pushed.
    Open source →
  25. 0.0.3 24 Sep 2020
    Release notes
    • Fix bugs in nested page view.
    Open source →
  26. 0.0.2 23 Sep 2020
    Release notes
    • Support nested page view.
    Open source →
  27. 0.0.1 23 Sep 2020
    Release notes
    • Initial release.
    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