Is there a Flutter compatible way to always keep the keyboard open in the app and focused on a field?
I have the same requirement from this Android question: "I need the keyboard to always be visible and focused on the only Edit Text [a Flutter TextField
] on screen".
In Android you could do this:
EditText txtEdit = (EditText) findViewById(R.id.txtEdit);
txtEdit.setOnEditorActionListener(new OnEditorActionListener() {
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
// your additional processing...
return true;
} else {
return false;
}
}
});