Is this scenario possible? ```Box(Modifier.parent...
# compose
a
Is this scenario possible?
Copy code
Box(Modifier.parent()){
 Box(Modifier.child()) // <- ensure child() can only be used from inside a composable with Modifier.parent(), and get info passed from parent()
}
tldr; I want
Modifier.child()
to acccess data passed from the
Modifier.parent()
.
Without modifiers I can do this easily using Composition Locals, but I would love to do the same using Modifiers only Ignore. This is not what I want afterall and might have found a simpler way 🙂
e
For anyone else who genuinely has this use case, you also have
ModifierLocal
s that can be use to store & pass information within a particular layout node subtree
today i learned 1