Created
October 19, 2021 21:39
-
-
Save victorbrndls/3dc5baa5a2f344a62af823680c86f23c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentState by remember { mutableStateOf(BoxState.Collapsed) } | |
val transition = updateTransition(currentState) | |
// Start in collapsed state and immediately animate to expanded | |
var currentState = remember { MutableTransitionState(BoxState.Collapsed) } | |
currentState.targetState = BoxState.Expanded | |
val transition = updateTransition(currentState) | |
transition.AnimatedVisibility | |
transition.AnimatedContent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment