Skip to content
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

No enter key on keypad when entering number #47

Open
JimTompkins opened this issue Mar 16, 2022 · 6 comments
Open

No enter key on keypad when entering number #47

JimTompkins opened this issue Mar 16, 2022 · 6 comments

Comments

@JimTompkins
Copy link

I'm using v0.8.0 and have noticed (on iOS) that when I hit the number it brings up the keypad, but there is no enter key.

Also, setting enableInteractiveSelection: false doesn't have the desired effect of disabling the keypad input.

Suggestions greatly appreciated!

@jpnurmi
Copy link
Collaborator

jpnurmi commented Mar 17, 2022

Hi! Thanks for the bug report. Are you using CupertinoSpinBox or the Material style SpinBox? Could you help and try to find the appropriate properties and values that need to be set to get the correct keyboard for a plain CupertinoTextField or TextField on iOS?

@JimTompkins
Copy link
Author

JimTompkins commented Mar 17, 2022 via email

@jpnurmi
Copy link
Collaborator

jpnurmi commented Mar 17, 2022

If we can find a way to show the correct type of keyboard with a plain TextField, then we can easily apply the necessary changes to SpinBox which is basically using TextField(keyboardType: TextInputType.numberWithOptions(...)) under the hood.

@JimTompkins
Copy link
Author

JimTompkins commented Mar 17, 2022 via email

@JimTompkins
Copy link
Author

I found this thread on SO: link

Based on that I found that using textInputAction: TextInputAction.done didn't work as expected. I found that

keyboardType: TextInputType.numberWithOptions(signed: true, decimal: false)

at least gives me an enter button, but it gives a more complex keyboard than I need. I really wanted "signed: false" but this didn't do anything.

I hope this points you in the right direction!

@stukdev
Copy link

stukdev commented Sep 25, 2023

Do you resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants