Why is ```@Composable fun DiceRollerView() { L...
# kotlin-native
e
Why is
Copy code
@Composable
fun DiceRollerView() {
    LazyColumn {
        /* DO Image */
        Image(painter = painterResource(id = R.drawable.dice_1), "") // <- This Line
        /* Do Button */
    }
}
complaining "@Composable invocations can only happen from the context of a @Composable function"?
n
This isn't related to Kotlin Native.
e
Oh, this is the channel not realted to Android specific issues then?
Gotcha
a
Not related to this channel. Inside LazyColumn you should use item { ... } if you want to pass a single item, but in most cases, it may as well be outside of LazyColumn if it's just one. or use items() { ... } and pass the list in it.
132 Views