Releases: cheonjaeung/gridlayout-compose
2.1.0
Changed
- 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.
Dependencies
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
2.0.0
Since 2.0.0 version, library's group id and package name is changed from io.woong.compose.grid
to com.cheonjaeung.compose.grid
.
1.2.2
Dependencies
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
1.2.1
Fixed
- 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.
1.2.0
Added
- 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
.
Improved
- Performance for item composable measuring and placing is improved.
Changed
- 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.
Compose Dependencies
There is no dependency changes since previous version.
- Android: Jetpack Compose 1.5.0
- Multiplatform: Compose Multiplatform 1.5.2
1.1.0
Added
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
.
Compose Dependencies
There is no dependency changes since previous version.
- Android: Jetpack Compose 1.5.0
- Multiplatform: Compose Multiplatform 1.5.2
1.0.0
GridLayout is now stable version. This update contains removing deprecated and dependency updates. Grid's features have no changes.
Removed
- Deprecated
HorizontalGrid
andVerticalGrid
composable functions are now removed.
Dependency Updates
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
Compose Dependencies
Now 1.0.0 version depends on following compose versions.
- Android: Jetpack Compose 1.5.0
- Multiplatform: Compose Multiplatform 1.5.2
0.2.0
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.
Added
- New
SimpleGridCells
class that defines how many cells should exist. - New
HorizontalGrid
andVerticalGrid
composables takeSimpleGridCells
parameter.
Deprecated
rowCount
andcolumnCount
parameter ofHorizontalGrid
andVerticalGrid
is deprecated. These deprecated composables can be remove in the future version. Migrate to grid composable withrow
andcolumns
.
Compose Dependencies
This library is built on these Compose libraries.
- Android: Jetpack Compose 1.4.3
- Multiplatform: Compose Multiplatform 1.4.1
0.1.0
Initial release of girdlayout-compose.