Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Refactor image preview for MediaView #1715

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

hjiangsu
Copy link
Member

Pull Request Description

This is a continuation of #1714, this time for the image preview within MediaView. I've extracted the previewImage function into its own widget and refactored to component to be a bit more generic.

Note: There is an existing ImagePreview widget in /shared/image_preview.dart which I would like to merge together at some point as well. This widget is used to display images within the markdown body (e.g., comments), link preview cards, and the advanced share sheet!

Issue Being Fixed

Issue Number: N/A

Screenshots / Recordings

Checklist

  • If a new package was added, did you ensure it uses an appropriate license and is actively maintained?
  • Did you use localized strings (and added appropriate descriptions) where applicable?
  • Did you add semanticLabels where applicable for accessibility?

Copy link
Member

@micahmo micahmo left a comment

Choose a reason for hiding this comment

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

LGTM

@hjiangsu hjiangsu merged commit 1d42304 into develop Feb 27, 2025
1 check passed
@hjiangsu hjiangsu deleted the feat/media-view-image-preview branch February 27, 2025 22:01
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.

2 participants