Hello, i am experiencing wierd behaviour when using
Card
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? Thanx