diff --git a/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanelsAnimators.kt b/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanelsAnimators.kt index bfa56042..23a7baed 100644 --- a/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanelsAnimators.kt +++ b/extensions-compose-experimental/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/experimental/panels/ChildPanelsAnimators.kt @@ -2,18 +2,17 @@ package com.arkivanov.decompose.extensions.compose.experimental.panels import com.arkivanov.decompose.ExperimentalDecomposeApi import com.arkivanov.decompose.extensions.compose.experimental.stack.animation.StackAnimator -import com.arkivanov.decompose.extensions.compose.experimental.stack.animation.fade /** * Contains panel animators for all layout kinds. * - * @param single a [StackAnimator] to be used in + * @param single an optional [StackAnimator] to be used in * [SINGLE][com.arkivanov.decompose.router.panels.ChildPanelsMode.SINGLE] mode. - * @param dual a [Pair] of [StackAnimator] to be used in + * @param dual a [Pair] of optional [StackAnimator] to be used in * [DUAL][com.arkivanov.decompose.router.panels.ChildPanelsMode.DUAL] mode. The [first][Pair.first] animator * is used for the primary (first) panel, and the [second][Pair.second] animator is used for the secondary * (second) panel. Default value is `Pair(single, single)`. - * @param triple a [Triple] of [StackAnimator] to be used in + * @param triple a [Triple] of optional [StackAnimator] to be used in * [TRIPLE][com.arkivanov.decompose.router.panels.ChildPanelsMode.TRIPLE] mode. The [first][Triple.first] animator * is used for the primary (first) panel, the [second][Triple.second] animator is used for the secondary (second) * panel, and the [third][Triple.third] animator is used for the tertiary (third) panel. @@ -21,7 +20,7 @@ import com.arkivanov.decompose.extensions.compose.experimental.stack.animation.f */ @ExperimentalDecomposeApi class ChildPanelsAnimators( - val single: StackAnimator? = fade(), - val dual: Pair = single to single, + val single: StackAnimator? = null, + val dual: Pair = Pair(single, single), val triple: Triple = Triple(dual.first, dual.second, dual.second), )