I am implementing my own custom layout.
So there is a centre Node. As of getting branch nodes(in parameter of composable) i thought of using item block as we regularly use in lazylist composables. When i saw the implemention of lazylists, it was complicated and i couldn’t understand it. If i were to do this
val branchNodes = @Composable {
repeat(nodes) { index -> branchNode(index) }
}
It gives a box of composable one below another.
If items block isn’t the best approach, what should i do?