I'm trying to capture touch on device backspace, I'm using RawKeyBoardListener, works on Android but not IoS.
Here's a code sample, the expectation is that when the back space key is pressed, the print will be displayed on the console.
RawKeyboardListener(
onKey: (event){
if (event.logicalKey == LogicalKeyboardKey.backspace) {
print("event detected");
}
},
focusNode: generalFocus,
child: TextField(
enableSuggestions: false,
autocorrect: false,
autofocus: true,
controller: wordControllerGeneral,
decoration: InputDecoration(
hintText: ' ',
contentPadding: EdgeInsets.symmetric(horizontal: 10.0),
),
onChanged: (value){
},
)
)