xxfast
12/09/2022, 12:03 AMRow {
Box {
AnimatedVisibility()
}
}
this gives you an error
'fun RowScope.AnimatedVisibility(visible: Boolean, modifier: Modifier = ..., enter: EnterTransition = ..., exit: ExitTransition = ..., label: String = ..., content: AnimatedVisibilityScope.() -> Unit): Unit' can't be called in this context by implicit receiver. Use the explicit one if necessary
I understand that there are three AnimatedVisibility
functions
@Composable fun AnimatedVisibility
@Composable fun RowScope.AnimatedVisibility
@Composable fun ColumnScope.AnimatedVisibility
But how do I invoke the first one without any scope?agrosner
12/09/2022, 12:13 AMAlex Vanyo
12/09/2022, 12:14 AMRow {
Box {
androidx.compose.animation.AnimatedVisibility()
}
}
xxfast
12/09/2022, 12:17 AMRow {
Box {
this@Row.AnimatedVisibility()
}
}
but here im using the second one