Closed leedstyh closed 3 years ago
The hover version shouldn't interfere with the go-flutter version or how this specific feature works. I don't see why changing the build tool reflects an change in how RawKeyboardListener works.
please run:
GO111MODULE=on go get -u github.com/go-flutter-desktop/hover
In the https://github.com/go-flutter-desktop/examples/tree/master/keyboard_event example.
hover bumpversion
hover build windows --debug
Does ./go/build/outputs/windows-debug_unopt/keyboard_event
works ?
Thanks @pchampio , after reading the example code, I found the issue, maybe it's FocusNode
related:
My code just put RawKeyboardListener
in a StatelessWidget and without setting the autofocus = true
. It works in 0.43.0 but not in 0.45.0
In 0.45.0, Setting autofocus = true
fix this isse. Or put in a StatefullWidget with didChangeDependencies()
In
hover 0.43
just works, what might be the problemhover doctor