diff --git a/precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/NavHost.kt b/precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/NavHost.kt index d7bb1dbd..9007efa2 100644 --- a/precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/NavHost.kt +++ b/precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/NavHost.kt @@ -3,6 +3,7 @@ package moe.tlaster.precompose.navigation import androidx.compose.animation.AnimatedContent import androidx.compose.animation.AnimatedContentTransitionScope import androidx.compose.animation.ContentTransform +import androidx.compose.animation.ExperimentalAnimationApi import androidx.compose.animation.core.ExperimentalTransitionApi import androidx.compose.animation.core.SeekableTransitionState import androidx.compose.animation.core.rememberTransition @@ -22,6 +23,7 @@ import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.SideEffect import androidx.compose.runtime.collectAsState import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue @@ -66,6 +68,7 @@ import moe.tlaster.precompose.stateholder.currentLocalStateHolder @OptIn( ExperimentalTransitionApi::class, ExperimentalFoundationApi::class, + ExperimentalAnimationApi::class, ) @Composable fun NavHost(