We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The window is focused in this state, therefore the wrong event is sent. Discovered on Windows 11.
Example App:
import 'package:flutter/material.dart'; import 'package:window_manager/window_manager.dart'; void main() { runApp(const MainApp()); } class MainApp extends StatefulWidget { const MainApp({super.key}); @override State<MainApp> createState() => _MainAppState(); } class _MainAppState extends State<MainApp> with WindowListener { @override void initState() { super.initState(); windowManager.addListener(this); } @override void dispose() { windowManager.removeListener(this); super.dispose(); } @override void onWindowFocus() async { print("onWindowFocus"); } @override void onWindowBlur() async { print("onWindowBlur"); } @override Widget build(BuildContext context) { return const MaterialApp( home: Scaffold( body: Center( child: Text('Hello World!'), ), ), ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The window is focused in this state, therefore the wrong event is sent.
Discovered on Windows 11.
Example App:
The text was updated successfully, but these errors were encountered: