https://github.com/thecomputeguy/window-autofocus-plugin
A flutter plugin to bring your windows desktop app in focus automatically without user interaction
https://github.com/thecomputeguy/window-autofocus-plugin
flutter-plugin
Last synced: 2 months ago
JSON representation
A flutter plugin to bring your windows desktop app in focus automatically without user interaction
- Host: GitHub
- URL: https://github.com/thecomputeguy/window-autofocus-plugin
- Owner: TheComputeGuy
- License: other
- Created: 2022-02-22T13:22:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T13:41:38.000Z (over 4 years ago)
- Last Synced: 2025-01-08T21:28:34.397Z (over 1 year ago)
- Topics: flutter-plugin
- Language: C++
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Window autofocus plugin: window_to_front
A flutter plugin which brings your windows desktop app into focus when triggered.
## Usage
To import this plugin into your flutter module, do the following:
1. Add the plugin into your project as
```
pub add --path ../window_to_front window_to_front
```
Replace ../window_to_front with the path to the root of this project
2. Import the plugin into your main.dart file
```
import 'package:window_to_front/window_to_front.dart';
```
3. Add the following line in the place when you want to bring the app window into focus:
```
WindowToFront.activate();
```