Idea. It would be nice to have a lint check or a w...
# compose
g
Idea. It would be nice to have a lint check or a way to designate that compose function is expected to start with a row or column.
r
What do you mean?
g
I have compose functions calling other compose functions. If the invoked function is inside a row and starts with a row, bad things happen.
Perhaps passing in what the parent nesting is would help.
a
You can declare your composable functions as extensions on the children scopes for those layouts, e.g.
Copy code
@Composable fun RowScope.MyFunction() {
👍 3
👆 1