Todor Grudev
05/11/2022, 12:55 PMTextField
- it feels like previously was the default behaviour, but I think with Compose it is not :?Siyamed
05/11/2022, 7:23 PMTodor Grudev
05/13/2022, 8:07 AMsetContent {
val (email, setEmail) = remember { mutableStateOf("") }
val (password, setPassword) = remember { mutableStateOf("") }
Column {
OutlinedTextField(
modifier = Modifier.fillMaxWidth(),
value = email,
onValueChange = { setEmail(it) },
singleLine = true
)
OutlinedTextField(
modifier = Modifier.fillMaxWidth(),
value = password,
onValueChange = { setPassword(it) },
singleLine = true,
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password)
)
}
}
Everything works unless you specify the KeyboardType.Password
option (this is still problematic in 1.1.1)
1.2.0-beta01 seems to address the issue.