Why passing ```content: @Composable ColumnScope.()...
# compose
m
Why passing
Copy code
content: @Composable ColumnScope.() -> Unit
in
Copy code
content: @Composable () -> Unit
and invoking it in
Copy code
AnimatedVisibility(...) {
   content()
}
Cancels the ColumnScope?
d
That's because
AnimatedVisibility
is a
Layout
itself. Therefore when
content
gets put in the AnimatedVisibility, it's no longer a direct child of
Column
. Therefore ColumnScope extensions will have no effect on
content
.