lifecycle 0.10.0 copy "lifecycle: ^0.10.0" to clipboard
lifecycle: ^0.10.0 copied to clipboard

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

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add lifecycle
copied to clipboard

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  lifecycle: ^0.10.0
copied to clipboard

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:lifecycle/lifecycle.dart';
copied to clipboard
73
likes
160
points
6.1k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

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

Repository (GitHub)

Topics

#lifecycle #navigator-observer #app-lifecycle-state #lifecycle-listener #widgets-lifecycle

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on lifecycle