https://kotlinlang.org logo
#compose
Title
# compose
l

Lilly

05/11/2020, 9:17 PM
Hi does someone know how to use TextField with inputType of
Password
? This is showing the text still plain:
Copy code
TextField(
    value = textState,
    modifier = Modifier.fillMaxWidth(),
    onValueChange = onChange,
    keyboardType = KeyboardType.Password
)
a

Anastasia [G]

05/11/2020, 9:38 PM
visualTransformation = PasswordVisualTransformation()
should be used and it is available in TextField already. In FilledTextField it will be available in dev11.