windows_single_instance 0.1.7 windows_single_instance: ^0.1.7 copied to clipboard
Forces a single instance of your Windows app, bringing the existing window to the front when a new instance is opened.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add windows_single_instance
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
windows_single_instance: ^0.1.7
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:windows_single_instance/windows_single_instance.dart';