theapache64
09/18/2021, 2:20 PMexpandHorizontally
and shrinkHorizontally
accept a param named expandFrom
and shrinkTowards
respectively. But it looks like it doesn’t consider that param. OR am I doing anything wrong? More details inside 🧵theapache64
09/18/2021, 2:20 PM@Composable
fun ExpandInShrinkOutHorizontallyDemo(isVisible: Boolean) {
AnimatedVisibility(
visible = isVisible,
enter = expandHorizontally(
expandFrom = Alignment.End
),
exit = shrinkHorizontally(
shrinkTowards = Alignment.CenterHorizontally
)
) {
Square()
}
}
theapache64
09/18/2021, 2:31 PMSquare
!
TIL: Don’t use colors when experimenting with animations. Instead use an image 😬Halil Ozercan
09/18/2021, 5:55 PMtheapache64
09/18/2021, 5:55 PMSam Marz
09/18/2021, 9:48 PMtheapache64
09/19/2021, 4:11 PMSquare
was a box, and yeah, it was working but my eyes couldn’t track it 😄