When I’m trying to use `AnimatedVisibility` I’m ge...
# compose
m
When I’m trying to use
AnimatedVisibility
I’m getting this error
org.jetbrains.kotlin.diagnostics.SimpleDiagnostic@4ae249ce (error: could not render message)
am I missing something? I have added these annotations
@ExperimentalAnimationApi
or
@OptIn(ExperimentalAnimationApi::class)
j
Show us some code! This error message usually pops up when you're trying to invoke a composable from a non-composable context
👍 1
d
If I'm to take a wild guess, you've used this in a
LazyColumn
. You'll have to move
AnimatedVisibility
into
item
and not the other way round.
👍 1
m
Okay, that helps, I was trying it inside the DrawScope with
Modifier.drawBehind