I'm building a chat app where I'm trying to trigger the textfield focus through the FocusNode with focusNode.requestFocus() when a new message is sent in order to not close the keyboard every time the user send a message.
I'm calling this method inside the onSubmitted.
It's working very fine with flutter textfield but here it's not working for me.
I'm building a chat app where I'm trying to trigger the textfield focus through the
FocusNode
withfocusNode.requestFocus()
when a new message is sent in order to not close the keyboard every time the user send a message.I'm calling this method inside the
onSubmitted
. It's working very fine with flutter textfield but here it's not working for me.