I'm trying to create a TextField
in Jetpack Compose for users to enter their first and last name.
Is there a way to allow ONLY letters and whitespaces ([a-zA-Z\s]
) as input? I've tried every single option available, including KeyboardType.Text
, KeyboardType.Ascii
, KeyboardType.Uri
, but they all show numbers!
Am I missing something obvious? Honestly, I'm kind of shocked that Google doesn't offer this option out of the box.