I am trying to get rid of underline while typing i...
# compose
n
I am trying to get rid of underline while typing in textfield, Any help?
but it might be for the line underneath the field
I’m also trying to get rid of that line, but in a BasicTextField, and so far haven’t found a way.
n
yes above is not relatable, i am also using BasicTextfield
What you want is probably disabling auto complete, which I believe you can achieve by setting
autoCorrect
in
KeyboardOptions
to false.
n
autocorrect false is not working for this
f
You could set
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Uri)
This will show a slash on the keyboard, but at least it's something
a
I’ll give that a try. Normally I wouldn’t be removing this line, but it’s for a code input field that has a background to indicate how many digits we’re expecting. The line underneath kind of gets in the way of that.
f
That's probably not an option, but changing the code to numbers only would also help 😄
a
So
KeyboardType.Uri
doesn’t work, but numbers does indeed. Too bad I need characters as well 😞
f
Weird, it works for me 🧐 Maybe due to different locales
a
Password also works, but then it ignores my capitalization settings instead. Maybe I can just work around that by capitalizing them myself 🤔
f
That's unfortunate
a
Okay, so for my usecase
KeyboardType.Password
works, I can turn the input into uppercase automatically. Thank you very much @Felix Schütz!
👍 3
this also has the added benefit of getting rid of that line above the keyboard that tries to understand what I’m typing 🙂
👍 1
c
@Albert Chang this suggestion doesn’t work. Its probably a bug