@@ -4,18 +4,15 @@ import androidx.compose.animation.AnimatedContent
4
4
import androidx.compose.foundation.background
5
5
import androidx.compose.foundation.clickable
6
6
import androidx.compose.foundation.layout.Column
7
- import androidx.compose.foundation.layout.PaddingValues
8
7
import androidx.compose.foundation.layout.Spacer
9
8
import androidx.compose.foundation.layout.WindowInsets
10
- import androidx.compose.foundation.layout.add
11
9
import androidx.compose.foundation.layout.asPaddingValues
12
10
import androidx.compose.foundation.layout.aspectRatio
13
11
import androidx.compose.foundation.layout.fillMaxSize
14
12
import androidx.compose.foundation.layout.fillMaxWidth
15
13
import androidx.compose.foundation.layout.height
16
14
import androidx.compose.foundation.layout.padding
17
- import androidx.compose.foundation.layout.systemBars
18
- import androidx.compose.foundation.lazy.LazyRow
15
+ import androidx.compose.foundation.layout.safeDrawing
19
16
import androidx.compose.foundation.lazy.grid.GridCells
20
17
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
21
18
import androidx.compose.foundation.lazy.grid.items
@@ -68,13 +65,10 @@ private fun ObjectGrid(
68
65
onObjectClick : (Int ) -> Unit ,
69
66
modifier : Modifier = Modifier ,
70
67
) {
71
- LazyRow () { }
72
68
LazyVerticalGrid (
73
69
columns = GridCells .Adaptive (180 .dp),
74
70
modifier = modifier.fillMaxSize(),
75
- contentPadding = WindowInsets .systemBars
76
- .add(WindowInsets (left = 8 .dp, right = 8 .dp))
77
- .asPaddingValues()
71
+ contentPadding = WindowInsets .safeDrawing.asPaddingValues(),
78
72
) {
79
73
items(objects, key = { it.objectID }) { obj ->
80
74
ObjectFrame (
0 commit comments