Prevent drawing behind system bars in `WidgetConfigureScreen`
This commit is contained in:
parent
13a794fe12
commit
b57e782613
|
@ -2,10 +2,7 @@ package com.simplemobiletools.flashlight.screens
|
||||||
|
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.border
|
import androidx.compose.foundation.border
|
||||||
import androidx.compose.foundation.layout.Box
|
import androidx.compose.foundation.layout.*
|
||||||
import androidx.compose.foundation.layout.fillMaxSize
|
|
||||||
import androidx.compose.foundation.layout.navigationBarsPadding
|
|
||||||
import androidx.compose.foundation.layout.wrapContentSize
|
|
||||||
import androidx.compose.material3.Text
|
import androidx.compose.material3.Text
|
||||||
import androidx.compose.material3.TextButton
|
import androidx.compose.material3.TextButton
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
|
@ -33,6 +30,7 @@ internal fun BrightDisplayScreen(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
.background(Color(backgroundColor))
|
.background(Color(backgroundColor))
|
||||||
|
.safeDrawingPadding()
|
||||||
) {
|
) {
|
||||||
TextButton(
|
TextButton(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
|
@ -54,7 +52,6 @@ internal fun BrightDisplayScreen(
|
||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.align(Alignment.BottomEnd)
|
.align(Alignment.BottomEnd)
|
||||||
.navigationBarsPadding()
|
|
||||||
) {
|
) {
|
||||||
sleepTimer()
|
sleepTimer()
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ internal fun WidgetConfigureScreen(
|
||||||
onSavePressed: () -> Unit
|
onSavePressed: () -> Unit
|
||||||
) {
|
) {
|
||||||
Column(
|
Column(
|
||||||
modifier = Modifier.fillMaxSize(),
|
modifier = Modifier.fillMaxSize().safeDrawingPadding(),
|
||||||
verticalArrangement = Arrangement.Bottom,
|
verticalArrangement = Arrangement.Bottom,
|
||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
|
|
Loading…
Reference in New Issue