From 6f5a3c2a509a0aa5003871b54599950d068a2670 Mon Sep 17 00:00:00 2001 From: SanmerDev Date: Sat, 11 Nov 2023 23:22:04 +0800 Subject: [PATCH] Adjust `animationSpec` for BottomNav --- .../main/kotlin/com/sanmer/mrepo/ui/activity/MainScreen.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/sanmer/mrepo/ui/activity/MainScreen.kt b/app/src/main/kotlin/com/sanmer/mrepo/ui/activity/MainScreen.kt index 8ae1d5e4..1ef8813f 100644 --- a/app/src/main/kotlin/com/sanmer/mrepo/ui/activity/MainScreen.kt +++ b/app/src/main/kotlin/com/sanmer/mrepo/ui/activity/MainScreen.kt @@ -1,7 +1,6 @@ package com.sanmer.mrepo.ui.activity import androidx.compose.animation.AnimatedVisibility -import androidx.compose.animation.core.tween import androidx.compose.foundation.layout.imePadding import androidx.compose.foundation.layout.padding import androidx.compose.material3.Icon @@ -49,8 +48,8 @@ fun MainScreen() { bottomBar = { AnimatedVisibility( visible = showNav, - enter = slideInBottomToTop(tween(100)), - exit = slideOutTopToBottom(tween(100)) + enter = slideInBottomToTop(), + exit = slideOutTopToBottom() ) { BottomNav( navController = navController,