File tree 1 file changed +9
-5
lines changed
app/src/main/java/org/stypox/tridenta/ui
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ package org.stypox.tridenta.ui
3
3
import android.os.Bundle
4
4
import androidx.activity.ComponentActivity
5
5
import androidx.activity.compose.setContent
6
+ import androidx.compose.foundation.layout.Box
6
7
import androidx.compose.foundation.layout.fillMaxSize
8
+ import androidx.compose.foundation.layout.safeDrawingPadding
7
9
import androidx.compose.material3.MaterialTheme
8
10
import androidx.compose.material3.Surface
9
11
import androidx.compose.ui.Modifier
@@ -34,11 +36,13 @@ class MainActivity : ComponentActivity() {
34
36
modifier = Modifier .fillMaxSize(),
35
37
color = MaterialTheme .colorScheme.background
36
38
) {
37
- Navigation { currentDestination, setDirection ->
38
- DrawerSheetContent (
39
- currentDestination = currentDestination,
40
- setDirection = setDirection
41
- )
39
+ Box (Modifier .safeDrawingPadding()) {
40
+ Navigation { currentDestination, setDirection ->
41
+ DrawerSheetContent (
42
+ currentDestination = currentDestination,
43
+ setDirection = setDirection
44
+ )
45
+ }
42
46
}
43
47
}
44
48
}
You can’t perform that action at this time.
0 commit comments