Robert Menke
10/05/2020, 3:10 PM@Composable
fun EmailTextField() {
val viewModel = viewModel<AuthenticationViewModel>()
val text: String by viewModel.email.observeAsState("")
TextField(
value = text,
onValueChange = viewModel::setEmail,
label = { Text(text = "What's your email address?") },
placeholder = { Text(text = "<mailto:jane.doe@gmail.com|jane.doe@gmail.com>") },
keyboardType = KeyboardType.Email,
modifier = frameFillWidth(60.dp)
)
}
The context it’s called in is this:
@Composable
fun SignInEmailView() {
SingleInputLayout(
onBackClicked = {},
onNextClicked = {},
children = {
EmailTextField()
}
)
}
and I get the error:
e: java.lang.IllegalArgumentException: Unbound type parameters are forbidden: [Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterSymbolImpl@124a0920, Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterSymbolImpl@6e295b2d]
I’ve been able to isolate this error to the EmailTextField
view and when I comment it out the error goes away. I’ve tried reproducing in a sample project but have been unable to do so. Does anything in the example I’ve provided seem off?
compose: 1.0.0-alpha04
kotlin: 1.4.10allan.conda
10/05/2020, 3:13 PMonValueChange = { viewModel.setEmail(it) },
Robert Menke
10/05/2020, 3:22 PMallan.conda
10/05/2020, 3:46 PMRobert Menke
10/05/2020, 4:49 PMallan.conda
10/05/2020, 4:51 PMRobert Menke
10/05/2020, 5:12 PMallan.conda
10/05/2020, 8:15 PMRobert Menke
10/05/2020, 8:48 PMDenis Sakhapov
10/06/2020, 2:18 AM