Max
03/24/2024, 1:19 PMval textState = remember { mutableStateOf(TextFieldValue()) }
TextField(
value = textState.value,
onValueChange = { textState.value = it }
)
Does anyone have an idea what is wrong?
compose = "1.6.2"
compose-plugin = "1.6.0"
kotlin = "1.9.22"
Max
03/26/2024, 8:01 AMVoyager
navigation sdk. When nesting two Navigator inside each other, then something weird happens leading to above crash when using TextFields. The below code is inside a Screen
. Will probably migrate away from Voyager then
Navigator(currentContent) {
val state by screenModel.isLoggedIn.collectAsState(initial = null)
when (state) {
true -> it.replaceAll(HomeTabsScreen())
false -> it.replaceAll(LoginScreen())
else -> it.replaceAll(SplashScreen())
}
CurrentScreen()
}