Hi, there is an api for animating lazy lists: `Mo...
# compose
a
Hi, there is an api for animating lazy lists:
Modifier.animateItemPlacement
, does anybody know if there is any api/approach for regular Row/Column? I’m aware of
AnimatedContent
but couldn’t make it work after a quick prototyping session
c
Sorry, I don't get it. Could you please explain more detail you want to achieve?
a
I have some variable amount of
children
composables that I render in a
Row
. I want to animate item addition/removal as
children
udpated
c
Can you provide me some example code and image?
a
Copy code
Row {
  children.forEach { child->
      child.Ui()
  }
}
I don’t have an image of that, but essentially
children
is a
State<List<Component>>
where Component is :
Copy code
interface Component {
    
    @Composable
    fun Ui()
}
when
children
change, the row updates but there is no addition/removal animation (which is expected since Row/Column don’t support that out of the box)