Skip to content

Commit

Permalink
Use windowInsetsPadding modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed Sep 11, 2024
1 parent 07361af commit 8055900
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.asPaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.systemBars
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.foundation.verticalScroll
Expand Down Expand Up @@ -84,9 +84,7 @@ private fun ObjectDetails(
}
}
},
modifier = modifier.padding(
WindowInsets.systemBars.asPaddingValues()
),
modifier = modifier.windowInsetsPadding(WindowInsets.systemBars),
) { paddingValues ->
Column(
Modifier
Expand Down

0 comments on commit 8055900

Please sign in to comment.