File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
app/src/main/java/to/bitkit/ui/shared/util Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ import androidx.compose.foundation.background
55import androidx.compose.foundation.clickable
66import androidx.compose.foundation.interaction.MutableInteractionSource
77import androidx.compose.foundation.interaction.collectIsPressedAsState
8+ import androidx.compose.foundation.layout.WindowInsets
89import androidx.compose.foundation.layout.fillMaxSize
9- import androidx.compose.foundation.layout.systemBarsPadding
10+ import androidx.compose.foundation.layout.systemBars
11+ import androidx.compose.foundation.layout.windowInsetsPadding
1012import androidx.compose.material3.MaterialTheme
1113import androidx.compose.runtime.Composable
1214import androidx.compose.runtime.LaunchedEffect
@@ -89,8 +91,9 @@ fun Modifier.blockPointerInputPassthrough(): Modifier {
8991
9092@Composable
9193fun Modifier.screen (
92- noBackground : Boolean = false
94+ noBackground : Boolean = false,
95+ insets : WindowInsets ? = WindowInsets .systemBars,
9396): Modifier = this
9497 .fillMaxSize()
9598 .then(if (noBackground) Modifier else Modifier .background(MaterialTheme .colorScheme.background))
96- .systemBarsPadding( )
99+ .then( if (insets == null ) Modifier else Modifier .windowInsetsPadding(insets) )
You can’t perform that action at this time.
0 commit comments