-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would like "next" form behavior in Keyboard #11344
Comments
#9363 is a related (but different) bug in our text input which is also obvious when attempting to build a sign-up screen. |
@cbracken Posse would like to try and work this support into the next release of their app. When you get back, would be interested in learning how hard this will be to do. |
Related #10372 on iOS. |
In terms of the work here, the main issue is that we don't currently define a navigation order over widgets. My guestimate at the work involved:
|
cc @abarth who may have ideas for how to do focus traversal |
I'd build the traversal using If you want to get fancy, you could register with a BuildContext and then traversal could use your global coordinates to guess a default traversal order. [1] https://docs.flutter.io/flutter/widgets/FocusScopeNode/requestFocus.html |
Posse is interested in knowing if this is something reasonable to do in the next two weeks before their next release. |
@cbracken is working on this. we are hoping to have something minimal next week, though not including custom focus order. |
Minor update: the challenge is that we have no semantics yet that defines ordering of form fields' traversal |
This doesn't fit our current priority list, so I'm moving it to a later milestone. |
For the record, we are not planning on working on this in the near future. Please let us know if that is a problem. Thanks. |
Input data from keyboard to UI is a most important function in a mobile device on production. |
I'm running into this issue with an app I am building. Is there a suggested workaround? |
This is a feature that I would like as well. Is there any workaround? |
Really needed. |
+1. I'm also running into this issue. Is there any workaround? |
This is a really needed feature. |
There is a workaround via
you can manually call this from the But it would be great if this could be done automatically. |
@FrantisekGazo |
…30040) Implements focus traversal for desktop platforms, including re-implementing the existing focus manager and focus tree. This implements a Focus widget that can be put into a widget tree to allow input focus to be given to a particular part of a widget tree. It incorporates with the existing FocusScope and FocusNode infrastructure, and has minimal breakage to the API, although FocusScope.reparentIfNeeded is removed, replaced by a call to FocusAttachment.reparent(), so this is a breaking change: FocusScopeNodes must now be attached to the focus tree using FocusScopeNode.attach, which takes a context and an optional onKey callback, and returns a FocusAttachment that should be kept by the widget that hosts the FocusScopeNode. This is necessary because of the need to make sure that the focus tree reflects the widget hierarchy. Callers that used to call FocusScope(context).reparentIfNeeded in their build method will call reparent on a FocusAttachment instead, which they will obtain by calling FocusScopeNode.attach in their initState method. Widgets that own FocusNodes will need to call dispose on the focus node in their dispose method. Addresses #11344, #1608, #13264, and #1678 Fixes #30084 Fixes #26704
This implements focus and hover handling for Material buttons. It inserts Focus widgets into the tree in order to allow buttons to be focusable via keyboard traversal (a.k.a. TAB traversal), and Listener widgets into the InkWell to allow the detection of hover states for widgets. Addresses #11344, #1608, and #13264.
This issue is blocked by needing the shortcut key map implementation (issue #13264), and by adding a connection for a soft keyboard "next" button (when used in place of the Done button) to be wired to call nextFocus on the currently focused widget. |
OK, the shortcut key map implementation is in, so this is just blocked now by not having the connection between the soft keyboard "next" button being pressed and the |
Peeps, that is so awesome but why does nobody knows about this? OK its pretty new :-) |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Normally when filling out a form on iOS or Android the "done" key turns into a "next" key and you don't have to dismiss the keyboard between text fields.
If you try our "Text fields" demo in the flutter_gallery it does not have this expected "next" behavior.
I ran into this initially in Posse's app in the sign-up screen.
The text was updated successfully, but these errors were encountered: