Skip to content

Commit

Permalink
Add navigation bar sized spacer as bottombar when bottombar isn't the…
Browse files Browse the repository at this point in the history
…re to add some space below
  • Loading branch information
alashow committed Dec 18, 2021
1 parent e856f25 commit ab6b684
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/kotlin/tm/alashow/datmusic/ui/home/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package tm.alashow.datmusic.ui.home

import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.ScaffoldState
Expand All @@ -20,6 +21,7 @@ import androidx.navigation.NavController
import androidx.navigation.NavDestination.Companion.hierarchy
import androidx.navigation.NavGraph.Companion.findStartDestination
import androidx.navigation.NavHostController
import com.google.accompanist.insets.navigationBarsPadding
import com.google.accompanist.insets.ui.Scaffold
import tm.alashow.common.compose.LocalPlaybackConnection
import tm.alashow.common.compose.LocalScaffoldState
Expand Down Expand Up @@ -74,6 +76,7 @@ internal fun Home(
height = bottomBarHeight
)
}
else Spacer(Modifier.navigationBarsPadding())
}
) {
AppNavigation(navController = navController)
Expand Down

0 comments on commit ab6b684

Please sign in to comment.