Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprisesonSubmitted with TextField when pressing Enter key #19027
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
On iOS when you hit enter on the keyboard it submits the Shouldn't the behavior be consistent. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Still running into this. The tutorial does not work on Android emulator. |
This comment has been minimized.
This comment has been minimized.
I'm also running into this issue when a bluetooth keyboard is connected on android. On screen keyboard works fine but an external one does not. |
This comment has been minimized.
This comment has been minimized.
Is this a duplicate of #15757 ? |
This comment has been minimized.
This comment has been minimized.
Any implementation yet? |
This comment has been minimized.
This comment has been minimized.
how to handle the enter key ? |
This comment has been minimized.
This comment has been minimized.
Would be great if web is supported here as well. |
This comment has been minimized.
This comment has been minimized.
This topic has been a year... I don’t know when the gods can achieve it. . . |
Added onSubmit action in passwordfield
This comment has been minimized.
This comment has been minimized.
Use a TextFormField and then you can set the onEditingComplete to then handle submission |
This comment has been minimized.
This comment has been minimized.
Wrap the page in a keyboard listener to achieve the same effect.
|
This comment has been minimized.
This comment has been minimized.
https://stackoverflow.com/a/58888683/12376696 |
This comment has been minimized.
This comment has been minimized.
Hello there, However, I really don't know why it works with iOS. Maybe it's just the way flutter works? Either way, it won't affect how your application works on a real device. However, if you still want to use the "enter" key using your keyboard, you can follow Micheal Reed's answer:
Good Luck, |
Steps to Reproduce
TextField
withonSubmitted
functiononSubmitted
is not calledLogs
Whenever you press Enter these come up in the error log: