Skip to content

Support zooming/enlarging images in blog posts - #14109

Open
mit-mit wants to merge 3 commits into
flutter:mainfrom
mit-mit:zoombox
Open

mit-mit wants to merge 3 commits into
flutter:mainfrom
mit-mit:zoombox

Conversation

@mit-mit

@mit-mit mit-mit commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Description of what this PR is changing or adding, and why:

Occasionally blog posts contain image with fine details or print. To support those with poorer eye sight this PR adds support for zooming/enlarging those simply by clicking them.

Issues fixed by this PR (if any):

PRs or commits this PR depends on (if any):

Presubmit checklist

  • If you are unwilling, or unable, to sign the CLA, even for a tiny, one-word PR, please file an issue instead of a PR.
  • If this PR is not meant to land until a future stable release, mark it as draft with an explanation.
  • This PR follows the Google Developer Documentation Style Guidelines—for example, it doesn't use i.e. or e.g., and it avoids I and we (first-person pronouns).
  • This PR uses semantic line breaks
    of 80 characters or fewer.

@mit-mit
mit-mit requested review from a team and abdallahshaban557 as code owners November 19, 2026 13:20

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new ImageZoombox component that progressively enhances images within blog posts with a modal zoom and drag-to-pan capability. It registers the component for client and server rendering, integrates it into the blog layout, adds styling, and includes unit tests. The review feedback correctly identifies a critical issue where client-side navigation between posts reuses the ImageZoombox state, preventing new images from being enhanced. Adding a unique key based on the page URL is recommended to force recreation of the component and ensure proper initialization.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@flutter-website-bot

flutter-website-bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit 3b57b58):

https://flutter-dev-230821--www-pr14109-zoombox-3xvvjo34.web.app

@mit-mit

mit-mit commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

@parlough
parlough requested a review from schultek November 19, 2026 16:43
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.

3 participants