Repository navigation
Conversation
There was a problem hiding this comment.
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>
|
Staged preview of the updated flutter.dev site (updated for commit 3b57b58): https://flutter-dev-230821--www-pr14109-zoombox-3xvvjo34.web.app |
|
Sample blogpost with fine print: |
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
of 80 characters or fewer.