@@ -71,19 +71,15 @@ object Transitions {
7171/* *
7272 * Construct a nested [NavGraph] with the default screen transitions.
7373 */
74- @Suppress(" LongParameterList" )
74+ @Suppress(" LongParameterList" , " MaxLineLength " )
7575inline fun <reified T : Any > NavGraphBuilder.navigationWithDefaultTransitions (
7676 startDestination : Any ,
7777 typeMap : Map <KType , @JvmSuppressWildcards NavType <* >> = emptyMap(),
7878 deepLinks : List <NavDeepLink > = emptyList(),
79- noinline enterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )?
80- = defaultEnterTrans,
81- noinline exitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )?
82- = defaultExitTrans,
83- noinline popEnterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )?
84- = defaultPopEnterTrans,
85- noinline popExitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )?
86- = defaultPopExitTrans,
79+ noinline enterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )? = defaultEnterTrans,
80+ noinline exitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )? = defaultExitTrans,
81+ noinline popEnterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )? = defaultPopEnterTrans,
82+ noinline popExitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )? = defaultPopExitTrans,
8783 noinline builder : NavGraphBuilder .() -> Unit ,
8884) {
8985 navigation<T >(
@@ -101,18 +97,14 @@ inline fun <reified T : Any> NavGraphBuilder.navigationWithDefaultTransitions(
10197/* *
10298 * Adds the [Composable] to the [NavGraphBuilder] with the default screen transitions.
10399 */
104- @Suppress(" LongParameterList" )
100+ @Suppress(" LongParameterList" , " MaxLineLength " )
105101inline fun <reified T : Any > NavGraphBuilder.composableWithDefaultTransitions (
106102 typeMap : Map <KType , NavType <* >> = emptyMap(),
107103 deepLinks : List <NavDeepLink > = emptyList(),
108- noinline enterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )?
109- = defaultEnterTrans,
110- noinline exitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )?
111- = defaultExitTrans,
112- noinline popEnterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )?
113- = defaultPopEnterTrans,
114- noinline popExitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )?
115- = defaultPopExitTrans,
104+ noinline enterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )? = defaultEnterTrans,
105+ noinline exitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )? = defaultExitTrans,
106+ noinline popEnterTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> EnterTransition ? )? = defaultPopEnterTrans,
107+ noinline popExitTransition : (AnimatedContentTransitionScope <NavBackStackEntry >.() -> ExitTransition ? )? = defaultPopExitTrans,
116108 noinline content : @Composable AnimatedContentScope .(NavBackStackEntry ) -> Unit ,
117109) {
118110 composable<T >(
0 commit comments