Focus on a Text Field via action

Widgets & Design

I want to set the focus state of a text field to active on a button press, so that the cursor moves to there and the user should start typing. But I cannot find any such action. Isn't this a super basic thing. How come it's not possible?

There are actions for set and reset field, but no action to focus a field.

I have been looking for a solution in the forum to no avail. Is there a solution?

Sometimes I am appalled by how some very simple things are just not possible in FF.

What have you tried so far?

I tried define a debugLabel to the text field, and write a custom action to get it via GlobalKey and set the its focus. But it just didn't work. And also, I really don't want to write a custom action for such a basic action.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
3 replies