desktop_lifecycle 0.1.1 copy "desktop_lifecycle: ^0.1.1" to clipboard
desktop_lifecycle: ^0.1.1 copied to clipboard

Allow your flutter desktop application to perceive whether the window is activated.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add desktop_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:
  desktop_lifecycle: ^0.1.1
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:desktop_lifecycle/desktop_lifecycle.dart';
copied to clipboard
30
likes
150
points
1.18k
downloads

Publisher

verified publishermixin.dev

Weekly Downloads

2024.09.26 - 2025.04.10

Allow your flutter desktop application to perceive whether the window is activated.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on desktop_lifecycle