调整样式

This commit is contained in:
2024-07-16 16:09:11 +08:00
parent 0b3455c7c4
commit c0398da9be
5 changed files with 11 additions and 12 deletions

View File

@@ -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()
}

View File

@@ -36,7 +36,7 @@ fun CommentsScreen() {
) {
Column(
modifier = Modifier
.fillMaxSize()
.weight(1f)
.background(color = Color(0xFFFFFFFF))
.padding(horizontal = 16.dp)
) {

View File

@@ -36,7 +36,7 @@ fun LikePage() {
) {
Column(
modifier = Modifier
.fillMaxSize()
.weight(1f)
.background(color = Color(0xFFFFFFFF))
.padding(horizontal = 16.dp)
) {

View File

@@ -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") {

View File

@@ -59,5 +59,11 @@ fun StatusBarMaskLayout(
}
content()
if (navigationBarPaddings > 24.dp) {
Box(
modifier = Modifier
.height(navigationBarPaddings).fillMaxWidth().background(Color.White)
)
}
}
}