@@ -20,11 +20,11 @@ import androidx.compose.foundation.layout.paddingFromBaseline
2020import androidx.compose.foundation.layout.size
2121import androidx.compose.foundation.layout.width
2222import androidx.compose.foundation.layout.wrapContentSize
23- import androidx.compose.foundation.lazy.GridCells
24- import androidx.compose.foundation.lazy.LazyVerticalGrid
25- import androidx.compose.foundation.lazy.items
26- import androidx.compose.foundation.lazy.itemsIndexed
27- import androidx.compose.foundation.lazy.rememberLazyListState
23+ import androidx.compose.foundation.lazy.grid. GridCells
24+ import androidx.compose.foundation.lazy.grid. LazyVerticalGrid
25+ import androidx.compose.foundation.lazy.grid. items
26+ import androidx.compose.foundation.lazy.grid. itemsIndexed
27+ import androidx.compose.foundation.lazy.grid.rememberLazyGridState
2828import androidx.compose.foundation.shape.CircleShape
2929import androidx.compose.foundation.shape.RoundedCornerShape
3030import androidx.compose.material.ContentAlpha
@@ -158,11 +158,11 @@ private fun YearPicker(
158158 state : DatePickerState ,
159159 pagerState : PagerState ,
160160) {
161- val gridState = rememberLazyListState ((viewDate.year - state.yearRange.first) / 3 )
161+ val gridState = rememberLazyGridState ((viewDate.year - state.yearRange.first) / 3 )
162162 val coroutineScope = rememberCoroutineScope()
163163
164164 LazyVerticalGrid (
165- cells = GridCells .Fixed (3 ),
165+ columns = GridCells .Fixed (3 ),
166166 state = gridState,
167167 modifier = Modifier .background(state.dialogBackground)
168168 ) {
@@ -322,7 +322,7 @@ private fun CalendarView(
322322 viewDate.year == state.selected.year && viewDate.month == state.selected.month
323323 }
324324
325- LazyVerticalGrid (cells = GridCells .Fixed (7 ), modifier = Modifier .height(240 .dp)) {
325+ LazyVerticalGrid (columns = GridCells .Fixed (7 ), modifier = Modifier .height(240 .dp)) {
326326 for (x in 0 until calendarDatesData.first) {
327327 item { Box (Modifier .size(40 .dp)) }
328328 }
@@ -392,7 +392,7 @@ private fun DayOfWeekHeader(state: DatePickerState, locale: Locale) {
392392 verticalAlignment = Alignment .CenterVertically ,
393393 horizontalArrangement = Arrangement .SpaceEvenly
394394 ) {
395- LazyVerticalGrid (cells = GridCells .Fixed (7 )) {
395+ LazyVerticalGrid (columns = GridCells .Fixed (7 )) {
396396 dayHeaders.forEach { it ->
397397 item {
398398 Box (Modifier .size(40 .dp)) {
0 commit comments