Skip to content

Commit 415cfc3

Browse files
Allow empty header at gallery picker view
1 parent 0500634 commit 415cfc3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repositories {
2121
```
2222

2323
```kotlin
24-
implementation("run.nabla:gallery-picker:1.4.4")
24+
implementation("run.nabla:gallery-picker:1.4.5")
2525
```
2626

2727
## Screenshots

gallery-picker/src/main/kotlin/run/nabla/gallerypicker/picker/GalleryPicker.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ fun GalleryPicker(
6969
state = lazyGridState,
7070
columns = StaggeredGridCells.Fixed(state.gridColumns)
7171
) {
72-
item(span = StaggeredGridItemSpan.FullLine) {
73-
header()
72+
if (header != {}) {
73+
item(span = StaggeredGridItemSpan.FullLine) {
74+
header()
75+
}
7476
}
7577
itemsIndexed(
7678
items = photos

0 commit comments

Comments
 (0)