@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
napperley
12/11/2022, 9:40 PM
This isn't related to Kotlin Native.
e
Eric Womer
12/11/2022, 9:41 PM
Oh, this is the channel not realted to Android specific issues then?
Eric Womer
12/11/2022, 9:41 PM
Gotcha
a
Adrian Witaszak
12/12/2022, 9:14 AM
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.