调整样式
This commit is contained in:
@@ -9,7 +9,7 @@ import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
|
||||
@Composable
|
||||
fun BottomNavigationPlaceholder(){
|
||||
fun BottomNavigationPlaceholder() {
|
||||
val navigationBarHeight = with(LocalDensity.current) {
|
||||
WindowInsets.navigationBars.getBottom(this).toDp()
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ fun CommentsScreen() {
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.weight(1f)
|
||||
.background(color = Color(0xFFFFFFFF))
|
||||
.padding(horizontal = 16.dp)
|
||||
) {
|
||||
|
||||
@@ -36,7 +36,7 @@ fun LikePage() {
|
||||
) {
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
.weight(1f)
|
||||
.background(color = Color(0xFFFFFFFF))
|
||||
.padding(horizontal = 16.dp)
|
||||
) {
|
||||
|
||||
@@ -140,9 +140,7 @@ fun NavigationController(navController: NavHostController) {
|
||||
|
||||
}
|
||||
composable(route = "Comments") {
|
||||
|
||||
CommentsScreen()
|
||||
|
||||
CommentsScreen()
|
||||
}
|
||||
composable(route = "Likes") {
|
||||
|
||||
@@ -150,12 +148,7 @@ fun NavigationController(navController: NavHostController) {
|
||||
|
||||
}
|
||||
composable(route = "Followers") {
|
||||
Box(
|
||||
modifier = Modifier.padding(bottom = navigationBarHeight)
|
||||
) {
|
||||
|
||||
FollowerPage()
|
||||
}
|
||||
FollowerPage()
|
||||
}
|
||||
composable(route = "NewPost") {
|
||||
|
||||
|
||||
@@ -59,5 +59,11 @@ fun StatusBarMaskLayout(
|
||||
|
||||
}
|
||||
content()
|
||||
if (navigationBarPaddings > 24.dp) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.height(navigationBarPaddings).fillMaxWidth().background(Color.White)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user