Skip to content

Commit 2ad3c76

Browse files
committed
Kept the transition specs to default
1 parent 7ef81de commit 2ad3c76

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

  • Jetchat/app/src/main/java/com/example/compose/jetchat

‎Jetchat/app/src/main/java/com/example/compose/jetchat/JetchatApp.kt‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
package com.example.compose.jetchat
1818

19-
import androidx.compose.animation.slideInHorizontally
20-
import androidx.compose.animation.slideOutHorizontally
21-
import androidx.compose.animation.togetherWith
2219
import androidx.compose.material3.DrawerValue.Closed
2320
import androidx.compose.material3.rememberDrawerState
2421
import androidx.compose.runtime.Composable
@@ -73,18 +70,6 @@ fun JetchatApp() {
7370
NavDisplay(
7471
backStack = backStack,
7572
onBack = { backStack.removeLastOrNull() },
76-
transitionSpec = {
77-
slideInHorizontally(initialOffsetX = { it }) togetherWith
78-
slideOutHorizontally(targetOffsetX = { -it })
79-
},
80-
popTransitionSpec = {
81-
slideInHorizontally(initialOffsetX = { -it }) togetherWith
82-
slideOutHorizontally(targetOffsetX = { it })
83-
},
84-
predictivePopTransitionSpec = {
85-
slideInHorizontally(initialOffsetX = { -it }) togetherWith
86-
slideOutHorizontally(targetOffsetX = { it })
87-
},
8873
// Scope the ViewModels to their entry. The ViewModelStoreNavEntryDecorator
8974
// requires the default SaveableStateHolderNavEntryDecorator, which saves the
9075
// state of each entry.

0 commit comments

Comments
 (0)