-
-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Environment
- OS: Windows 11 Home (10.0.26100 Build 26100)
hotkey_managerVersion: ^0.2.3
Problem Description
Using hotkey_manager on Windows results in both dependency resolution warnings and a fatal runtime error.
- Dependency Warning:
flutter pub getwarns that thehotkey_manager_windowspackage is missing. - Runtime Error: When the application is built and run, it crashes with a
MissingPluginException, as the native Windows implementation for the plugin cannot be found.
What I've tried:
- Running
flutter cleanandflutter pub get/upgrade. - Building the application.
The warnings persist and the application fails at runtime.
Error Outputs
1. Dependency Resolution Warning
Package hotkey_manager:windows references hotkey_manager_windows:windows as the default plugin, but the package does not exist, or is not a plugin package.
Ask the maintainers of hotkey_manager to either avoid referencing a default implementation via platforms: windows: default_package: hotkey_manager_windows or create a plugin named hotkey_manager_windows.
2. Runtime MissingPluginException
The application throws the following exception when trying to use the plugin:
Fehler beim Erfassen: MissingPluginException(No implementation found for method register on channel dev.leanflutter.plugins/hotkey_manager)
Relevant pubspec.yaml
dependencies:
flutter:
sdk: flutter
# ... other dependencies
hotkey_manager: ^0.2.3
win32: ^5.13.0Conclusion
The missing hotkey_manager_windows plugin is causing both build-time warnings and a runtime crash, making the package unusable on Windows in its current state.