Thread
#compose
    g

    Guy Bieber

    2 years ago
    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

    romainguy

    2 years ago
    What do you mean?
    g

    Guy Bieber

    2 years ago
    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.
    Adam Powell

    Adam Powell

    2 years ago
    You can declare your composable functions as extensions on the children scopes for those layouts, e.g.
    @Composable fun RowScope.MyFunction() {