Skip to content

Commit

Permalink
Allow empty header at gallery picker view
Browse files Browse the repository at this point in the history
  • Loading branch information
david-trujillo committed Jul 23, 2023
1 parent 0500634 commit 415cfc3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
```

```kotlin
implementation("run.nabla:gallery-picker:1.4.4")
implementation("run.nabla:gallery-picker:1.4.5")
```

## Screenshots
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ fun GalleryPicker(
state = lazyGridState,
columns = StaggeredGridCells.Fixed(state.gridColumns)
) {
item(span = StaggeredGridItemSpan.FullLine) {
header()
if (header != {}) {
item(span = StaggeredGridItemSpan.FullLine) {
header()
}
}
itemsIndexed(
items = photos
Expand Down

0 comments on commit 415cfc3

Please sign in to comment.