https://kotlinlang.org logo
Title
g

Glenn Martin

02/13/2021, 6:28 AM
The below is broken on latest build
ScrollableColumn(modifier = Modifier.fillMaxSize()) {
            FlowRow(
                mainAxisSpacing = 32.dp,
                crossAxisSpacing = 32.dp,
                crossAxisAlignment = FlowCrossAxisAlignment.Center,

                ) {
                getCard(0, "Redis")
                getCard(1, "Prs-Mock")
                getCard(2, "Searcher")
                getCard(3, "DynamoDB")
                getCard(0, "Redis")
                getCard(1, "Prs-Mock")
                getCard(2, "Searcher")
                getCard(3, "DynamoDB")

            }
        }
I've replaced to Lazycolumn and flow row -> LazyRow and getting the following errors,
@Composable invocations can only happen from the context of a @Composable function
d

Dominaezzz

02/13/2021, 11:29 AM
You need to call each getCard inside a
item { .... }
.
👆 3