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

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

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';
27
likes
130
pub points
92%
popularity

Publisher

verified publishermixin.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on desktop_lifecycle