Skip to content

Releases: chenenyu/lifecycle

🎉 1.0.0

Choose a tag to compare

@chenenyu chenenyu released this 02 Sep 02:14
3c1f0b3

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.

0.10.0

Choose a tag to compare

@chenenyu chenenyu released this 28 Mar 12:29
  • Fix issue #27: Custom initialPage in PageController(also initialIndex in TabController)
    will not trigger visible and active.
  • Migrate to new flutter's gradle plugins.

0.9.0

Choose a tag to compare

@chenenyu chenenyu released this 04 Sep 11:19
  • Fix #26
  • Bump flutter version to 3.13.0

0.8.0

Choose a tag to compare

@chenenyu chenenyu released this 23 Aug 03:18
  • Fix: use addPostFrameCallback to avoid unnecessary frame callback.
  • The param wantKeepAlive in ChildPageLifecycleWrapper is not required now.
  • Export some mixins.

0.7.0

Choose a tag to compare

@chenenyu chenenyu released this 23 Apr 08:24

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]).

0.6.0

Choose a tag to compare

@chenenyu chenenyu released this 01 Jul 01:57

Fix issue #23 . Nested Navigator error.

0.5.0

Choose a tag to compare

@chenenyu chenenyu released this 16 May 07:41

Flutter 3.0.0

0.4.4

Choose a tag to compare

@chenenyu chenenyu released this 20 Apr 12:12

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

0.4.3

Choose a tag to compare

@chenenyu chenenyu released this 18 Feb 03:31

issue #19

0.4.2

Choose a tag to compare

@chenenyu chenenyu released this 03 Dec 07:16
f46499b

issue #16