2024.10.19
- New
Modifier.span
is added that has a lambda parameter to calculate span size. In this lambda, you can access toGridItemSpanScope
to get max span and remaining span.
Project dependencies are updated.
- Kotlin: 1.9.22 -> 1.9.25
- Android Gradle Plugin: 8.2.0 -> 8.6.1
- Compose Multiplatform: 1.6.0 -> 1.7.0
- Compose Android: 1.6.0 -> 1.7.0
- Compose Android Compiler Plugin: 1.5.10 -> 1.5.15
2024.04.13
Library's group id and package name is changed from io.woong.compose.grid
to com.cheonjaeung.compose.grid
.
2024.03.01
Project dependencies are updated.
- Kotlin: 1.9.0 -> 1.9.22
- Android Gradle Plugin: 8.1.1 -> 8.2.0
- Compose Compiler Plugin: 1.5.2 -> 1.5.10
- Compose Android: 1.5.0 -> 1.6.0
- Compose Multiplatform: 1.5.1 -> 1.6.0
2024.02.13
- Fixed incorrect layout size when grid should have smaller size than constraints max size.
- Fixed incorrect spacing before the last item.
- Fixed crash when measuring invisible item composable constraints.
2024.01.06
- Start supporting Compose Multiplatform for iOS.
- New
align
modifier is added onGridScope
to set alignment of specific item composable in the cell. Thealign
modifier takes anAlignement
parameter likeBoxScope
'salign
.
- Performance for item composable measuring and placing is improved.
- Artifact names are changed. If you use library dependency for desktop platform with
io.woong.compose.grid:grid-desktop
, you must change artifact name toio.woong.compose.grid:grid-jvm
or justio.woong.compose.grid:grid
. If you already add dependency asio.woong.compose.grid:grid
, you can ignore it.
There is no dependency changes since previous version.
- Android: Jetpack Compose 1.5.0
- Multiplatform: Compose Multiplatform 1.5.2
2023.12.09
content
lambda of grid now extendsGridScope
.- New
span
modifier is added.span
is can applied to item composable in theGridScope
. - New optional parameter
fill
is added forSimpleGridCells.Fixed
andSimpleGridCells.Adaptive
.
There is no dependency changes since previous version.
- Android: Jetpack Compose 1.5.0
- Multiplatform: Compose Multiplatform 1.5.2
2023.10.07
GridLayout is now stable version. This update contains removing deprecated and dependency updates. Grid's features have no changes.
- Deprecated
HorizontalGrid
andVerticalGrid
composable functions are now removed.
Project dependencies are updated.
For Android, the compile SDK version is updated from 33 to 34.
- Kotlin: 1.8.20 -> 1.9.0
- Android Gradle Plugin: 7.3.0 -> 8.1.1
- Compose Compiler Plugin: 1.4.6 -> 1.5.2
- Compose Android: 1.4.3 -> 1.5.0
- Compose Multiplatform: 1.4.1 -> 1.5.1
Now 1.0.0 version depends on following compose versions.
- Android: Jetpack Compose 1.5.0
- Multiplatform: Compose Multiplatform 1.5.2
2023.08.15
This update include a new type of cell count strategy. The new cell count strategy is for similar API to Jetpack Compose Foundation's lazy grid. Therefore, old grid layout composables is deprecated and added new composables. Please migrate layout to new API.
- New
SimpleGridCells
class that defines how many cells should exist. - New
HorizontalGrid
andVerticalGrid
composables takeSimpleGridCells
parameter.
rowCount
andcolumnCount
parameter ofHorizontalGrid
andVerticalGrid
is deprecated. These deprecated composables can be remove in the future version. Migrate to grid composable withrow
andcolumns
.
This library is built on these Compose libraries.
- Android: Jetpack Compose 1.4.3
- Multiplatform: Compose Multiplatform 1.4.1
2023.07.22
Initial public release of this library.
This library is built on these Compose libraries.
- Android: Jetpack Compose 1.4.3
- Multiplatform: Compose Multiplatform 1.4.1