lifecycle_guard 1.0.3 copy "lifecycle_guard: ^1.0.3" to clipboard
lifecycle_guard: ^1.0.3 copied to clipboard

Flutter apps often lose critical work when users swipe them away or the OS kills the process. lifecycle_guard ensures your background tasks continue and complete — even after termination.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add lifecycle_guard

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

dependencies:
  lifecycle_guard: ^1.0.3

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_guard/lifecycle_guard.dart';
8
likes
130
points
21
downloads
screenshot

Documentation

API reference

Publisher

verified publisheranil-bhattarai.com.np

Weekly Downloads

Flutter apps often lose critical work when users swipe them away or the OS kills the process. lifecycle_guard ensures your background tasks continue and complete — even after termination.

Homepage
Repository (GitHub)
View/report issues

Topics

#background-task #background-execution #foreground-service #data-sync #flutter

License

BSD-3-Clause (license)

Dependencies

flutter, lifecycle_guard_android, lifecycle_guard_ios, lifecycle_guard_platform_interface

More

Packages that depend on lifecycle_guard

Packages that implement lifecycle_guard