Skip to content

Page gap support#574

Open
hvesuk wants to merge 1 commit into
bluefireteam:mainfrom
hvesuk:feature/gap-between-images
Open

Page gap support#574
hvesuk wants to merge 1 commit into
bluefireteam:mainfrom
hvesuk:feature/gap-between-images

Conversation

@hvesuk

@hvesuk hvesuk commented Apr 26, 2026

Copy link
Copy Markdown

This PR adds a new pageGap parameter to PhotoViewGallery.

Behavior:

  • pages stay full-screen when the gallery is settled
  • a configurable gap is shown only while swiping between pages
  • defaults to 0.0, so the change is backward compatible

Implementation:

  • added pageGap to both PhotoViewGallery constructors
  • updated the internal page rendering to shift pages dynamically during scroll
  • left existing gallery behavior unchanged when pageGap is not set

@hvesuk

hvesuk commented Apr 26, 2026

Copy link
Copy Markdown
Author

Hi @renancaraujo, tagging you as the most active contributor to this repo

I made a page gap support. Not sure this is best way possible, but it works for me

Let me know if any corrections needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant