Vlad Gorbunov
04/05/2020, 10:50 AMCard
inside AdapterList
For example this code:
@Composable
fun ArticleAdapterList(data: List<Article>) {
AdapterList(data = data) { item ->
Column {
Column {
Text(text = item.title)
Text(text = item.content.take(200))
}
}
}
}
works just fine, but once i change it to:
@Composable
fun ArticleAdapterList(data: List<Article>) {
AdapterList(data = data) { item ->
Card(shape = RoundedCornerShape(8.dp), elevation = 4.dp, modifier = Modifier.fillMaxWidth() + Modifier.padding(8.dp)) {
Column {
Text(text = item.title)
Text(text = item.content.take(200))
}
}
}
}
i am getting java.lang.IllegalStateException: Node should be attached to an owner
once i start scrolling
anyone with similar issue? ThanxVal Salamakha
04/06/2020, 2:00 AMTimo Drick
04/06/2020, 2:03 PMVlad Gorbunov
04/06/2020, 2:06 PMKismet
04/06/2020, 3:27 PM0.1.0-dev08
?Vlad Gorbunov
04/06/2020, 3:37 PMKismet
04/06/2020, 7:45 PMVal Salamakha
04/07/2020, 12:16 AMRyan Mentley
04/08/2020, 12:13 PMBut onDispose is not called for the composables.https://issuetracker.google.com/issues/150174792