flutter_lifecycle 0.2.0 copy "flutter_lifecycle: ^0.2.0" to clipboard
flutter_lifecycle: ^0.2.0 copied to clipboard

Get access to Flutter's life cycle on StatelessWidgets. It adds the ability to run onInit and onDispose to StatelessWidget

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_lifecycle

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

dependencies:
  flutter_lifecycle: ^0.2.0

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:flutter_lifecycle/flutter_lifecycle.dart';
3
likes
40
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

Get access to Flutter's life cycle on StatelessWidgets. It adds the ability to run onInit and onDispose to StatelessWidget

Repository (GitHub)

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_lifecycle