Skip to content

Commit

Permalink
Fix missing status bar padding in FullScreenLayoutBase
Browse files Browse the repository at this point in the history
  • Loading branch information
teogor committed Oct 4, 2023
1 parent 6efebab commit bc2417d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import dev.teogor.ceres.navigation.events.TrackScreenViewEvent
import dev.teogor.ceres.ui.foundation.applyIf
import dev.teogor.ceres.ui.theme.MaterialTheme

@Composable
Expand All @@ -38,10 +39,8 @@ fun FullScreenLayoutBase(
modifier = Modifier
.fillMaxSize()
.background(color = backgroundColor)
.apply {
if (hasStatusBar) {
statusBarsPadding()
}
.applyIf(hasStatusBar) {
Modifier.statusBarsPadding()
},
content = content,
)
Expand Down

0 comments on commit bc2417d

Please sign in to comment.