I'm developing an Android TV app using Flutter. I am able to run the app(the sample app for now). But I can't select anything using d pad select button.
I found that I have to use something like this inorder to achieve this
Shortcuts(
shortcuts: {
LogicalKeySet(LogicalKeyboardKey.select):
const Intent(ActivateAction.key)
},
child: MaterialApp())
But it is giving me an error in the code. What am I doing wrong?
Any help is appreciated. Thank you.
Adding this code definitely helps for Android TV OK/Select button and can be extended for other mappings. Builds and works perfectly for flutter 1.24-dev