Plugin to detect active window
A simple usage example:
import 'package:active_window/auto_active_window.dart';
main() {
final windowInfo = await ActiveWindow().getActiveWindow();
// or with observer
final windowObserver = AutoActiveWindowInfo()
..windowStream.listen((event) {
print(event);
});
windowObserver.startService();
}
flutter pub add active_window