Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Adjust animationSpec for BottomNav
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Nov 11, 2023
1 parent 2fe3ddc commit 6f5a3c2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6f5a3c2

Please sign in to comment.