@@ -23,6 +23,7 @@ import androidx.compose.foundation.Text
23
23
import androidx.compose.foundation.clickable
24
24
import androidx.compose.foundation.layout.Column
25
25
import androidx.compose.foundation.layout.Row
26
+ import androidx.compose.foundation.layout.RowScope.align
26
27
import androidx.compose.foundation.layout.Spacer
27
28
import androidx.compose.foundation.layout.Stack
28
29
import androidx.compose.foundation.layout.fillMaxSize
@@ -75,9 +76,9 @@ fun SnackCollection(
75
76
) {
76
77
Column (modifier = modifier) {
77
78
Row (
78
- verticalGravity = Alignment .CenterVertically ,
79
+ verticalAlignment = Alignment .CenterVertically ,
79
80
modifier = Modifier
80
- .preferredHeightIn(minHeight = 56 .dp)
81
+ .preferredHeightIn(min = 56 .dp)
81
82
.padding(start = 24 .dp)
82
83
) {
83
84
Text (
@@ -90,7 +91,7 @@ fun SnackCollection(
90
91
)
91
92
IconButton (
92
93
onClick = { /* todo */ },
93
- modifier = Modifier .gravity (Alignment .CenterVertically )
94
+ modifier = Modifier .align (Alignment .CenterVertically )
94
95
) {
95
96
Icon (
96
97
asset = Icons .Outlined .ArrowForward ,
@@ -160,7 +161,7 @@ fun SnackItem(
160
161
modifier = modifier.padding(bottom = 8 .dp)
161
162
) {
162
163
Column (
163
- horizontalGravity = Alignment .CenterHorizontally ,
164
+ horizontalAlignment = Alignment .CenterHorizontally ,
164
165
modifier = Modifier
165
166
.clickable(onClick = { onSnackClick(snack.id) })
166
167
.padding(8 .dp)
@@ -223,7 +224,7 @@ private fun HighlightSnackItem(
223
224
imageUrl = snack.imageUrl,
224
225
modifier = Modifier
225
226
.preferredSize(120 .dp)
226
- .gravity (Alignment .BottomCenter )
227
+ .align (Alignment .BottomCenter )
227
228
)
228
229
}
229
230
Spacer (modifier = Modifier .preferredHeight(8 .dp))
0 commit comments