Alvin Dizon
10/21/2023, 9:00 AMenterTransition
or exitTransition
animations to a composable
that's created within a NavGraphBuilder
? I used to be able to do
fun NavGraphBuilder.settingsGraph(
onUpButtonClicked: () -> Unit
) {
navigation(
route = "settings_route",
startDestination = "settings_destination"
) {
composable(
route = SettingsNavigation.destination,
enterTransition = { slideInHorizontally(initialOffsetX = { 1000 }) },
exitTransition = { slideOutHorizontally(targetOffsetX = { 1000 }) }
) {
// composable here
}
}
}
But it seems enterTransition
and exitTransition
is not availableChrimaeon
10/21/2023, 9:32 AMIan Lake
10/21/2023, 2:14 PMAlvin Dizon
10/22/2023, 1:13 PM