Skip to content

Commit

Permalink
accompanist 0.22.0-rc
Browse files Browse the repository at this point in the history
  • Loading branch information
joreilly committed Dec 23, 2021
1 parent f6fb238 commit 6017e28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions app/src/main/java/com/surrus/peopleinspace/ui/MainActivity.kt
Expand Up @@ -3,12 +3,8 @@ package com.surrus.peopleinspace.ui
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.*
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.slideInHorizontally
import androidx.compose.animation.slideOutHorizontally
import androidx.compose.material.BottomNavigation
import androidx.compose.material.BottomNavigationItem
import androidx.compose.material.Icon
Expand Down Expand Up @@ -99,11 +95,11 @@ fun MainLayout() {
AnimatedNavHost(navController, startDestination = Screen.PersonList.title) {
composable(
route = Screen.PersonList.title,
exitTransition = { _, target ->
exitTransition = {
slideOutHorizontally() +
fadeOut(animationSpec = tween(1000))
},
popEnterTransition = { _, _ ->
popEnterTransition = {
slideInHorizontally()
}
) {
Expand All @@ -116,11 +112,11 @@ fun MainLayout() {
}
composable(
route = Screen.PersonDetails.title + "/{person}",
enterTransition = { _, _ ->
enterTransition = {
slideInHorizontally() +
fadeIn(animationSpec = tween(1000))
},
popExitTransition = { _, _ ->
popExitTransition = {
slideOutHorizontally()
}
) { backStackEntry ->
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Dependencies.kt
Expand Up @@ -13,7 +13,7 @@ object Versions {
const val composeCompiler = "1.1.0-rc02"
const val wearCompose = "1.0.0-alpha13"
const val navCompose = "2.4.0-rc01"
const val accompanist = "0.21.0-beta"
const val accompanist = "0.22.0-rc"

const val junit = "4.12"
const val androidXTestJUnit = "1.1.3"
Expand Down

0 comments on commit 6017e28

Please sign in to comment.